spawn
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)
let job = spawn echo "hello"
let code = job.exit_code()
job.destroy()