ChildHandle
Defined in: packages/core/src/kernel/types.ts:1292
Handle returned by spawn().
Remarks
Section titled “Remarks”stdin / stdout / stderr are present only when the spawn created pipes
for them (i.e., the caller did NOT pass explicit fds in SpawnOpts for those
streams). When the child inherits the parent’s fds, these are undefined.
wait() resolves with the child’s exit code; rejects with ESRCH if the pid
is already reaped.
Properties
Section titled “Properties”
readonlypid:Pid
Defined in: packages/core/src/kernel/types.ts:1293
stderr?
Section titled “stderr?”
readonlyoptionalstderr?:Readable
Defined in: packages/core/src/kernel/types.ts:1296
stdin?
Section titled “stdin?”
readonlyoptionalstdin?:Writable
Defined in: packages/core/src/kernel/types.ts:1294
stdout?
Section titled “stdout?”
readonlyoptionalstdout?:Readable
Defined in: packages/core/src/kernel/types.ts:1295
Methods
Section titled “Methods”wait()
Section titled “wait()”wait():
Promise<ExitCode>
Defined in: packages/core/src/kernel/types.ts:1297
Returns
Section titled “Returns”Promise<ExitCode>