Skip to content

ChildHandle

Defined in: packages/core/src/kernel/types.ts:1292

Handle returned by spawn().

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.

readonly pid: Pid

Defined in: packages/core/src/kernel/types.ts:1293


readonly optional stderr?: Readable

Defined in: packages/core/src/kernel/types.ts:1296


readonly optional stdin?: Writable

Defined in: packages/core/src/kernel/types.ts:1294


readonly optional stdout?: Readable

Defined in: packages/core/src/kernel/types.ts:1295

wait(): Promise<ExitCode>

Defined in: packages/core/src/kernel/types.ts:1297

Promise<ExitCode>