Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment spawnOnce

process/local::spawnOnce


Parameters

↳ var command: Command (process/command::Command)
↳ var environment: Option<Environment> = _ (process/environment::Environment)

Inputs

⇥ launch: Block<void>
⇥ stdin: Stream<byte>

Outputs

↦ completed: Block<void>
↦ error: Block<string>
↦ exit: Block<Option<i32>>
↦ failed: Block<void>
↦ finished: Block<void>
↦ started: Block<void>
↦ stderr: Stream<byte>
↦ stdout: Stream<byte>


Spawn a single command on the local machine with stdio streams, triggered by a launch signal.

Convenience wrapper around spawnOnce that automatically obtains the local executor. command is spawned with the optional environment when launch fires. Connects stdin, stdout, and stderr streams to the process. started, completed, failed, error, exit, and finished behave identically to spawnOnce.