spawn

Spawns the Process

NOTE: Process.destroy MUST be called before de-referencing the Process instance in order to close resources. This is best done via try/finally, or utilizing the other spawn function which handles it automatically for you.

Throws

if Process creation failed


inline fun <T> spawn(block: (process: Process) -> T): T(source)

Spawns the Process and calls _signal upon block closure.

Throws

if Process creation failed