Closed SevereOverfl0w closed 7 years ago
Stream realtime stdout/stderr instead of waiting until command completion. Makes long-running tasks very opaque.
Example:
;; Machfile.edn {foo #$ ["./test-this"]}
# test-this #!/usr/bin/env sh echo "Line 1" sleep 10 echo "Line 2"
Prints nothing for 10s, instead of Line1 instantly, followed by Line2 in 10s.
Digging in, this appears to require a rewrite of parts of mach to be async. Promises probably fulfill our needs, perhaps using promesa or similar as cljs doesn't have native promises.
Stream realtime stdout/stderr instead of waiting until command completion. Makes long-running tasks very opaque.
Example:
Prints nothing for 10s, instead of Line1 instantly, followed by Line2 in 10s.