Skip to content

SpawnHandle

Defined in: src/core/adapters.ts:65

Handle to a spawned process

Allows streaming output and waiting for completion.

Properties

stderr

readonly stderr: AsyncIterable<string>

Defined in: src/core/adapters.ts:69

Async iterator for stderr lines


stdout

readonly stdout: AsyncIterable<string>

Defined in: src/core/adapters.ts:67

Async iterator for stdout lines

Methods

kill()

kill(signal?): void

Defined in: src/core/adapters.ts:73

Kill the process

Parameters

signal?

"SIGTERM" | "SIGKILL"

Returns

void


wait()

wait(): Promise<SpawnResult>

Defined in: src/core/adapters.ts:71

Wait for process completion

Returns

Promise<SpawnResult>