Module
Node.ChildProcess.Aff
- Package
- purescript-node-child-process
- Repository
- purescript-node/purescript-node-child-process
#waitSpawned Source
waitSpawned :: ChildProcess -> Aff (Either SystemError Pid)Blocks until either a spawn or error event is fired.
If a spawn event fired, child process was successfully started
and the pid of the process can be obtained.
If an error event fires, child process was not started successfully.
#waitSpawned' Source
waitSpawned' :: UnsafeChildProcess -> Aff (Either SystemError Pid)Same as waitSpawned but works on UnsafeChildProcess
Blocks until either a spawn or error event is fired.
If a spawn event fired, child process was successfully started
and the pid of the process can be obtained.
If an error event fires, child process was not started successfully.