RecurLoop/ Documentation
Shell/APIv0.2.12

spawn

recurloop
spawn command arguments ...

Starts a command asynchronously with output capture. Inside fn, returns a Shell:Invocation*; wait or inspect it, then call destroy().

Available only inside compiled functions.

Example (inside fn)

recurloop
let job = spawn echo "hello"
let code = job.exit_code()
job.destroy()