import { ProcReadableStream } from "https://deno.land/x/proc@0.20.17/src/api2/proc-readable-stream.ts";
Constructors
new
ProcReadableStream(source: ReadableStream<R>)Methods
cancel(reason?: unknown): Promise<void>
collect()
getReader(options: { mode: "byob"; }): ReadableStreamBYOBReader
getReader(options?: { mode?: undefined; }): ReadableStreamDefaultReader<R>
pipeThrough<T>(transform: { writable: WritableStream<R>; readable: ReadableStream<T>; }, options?: PipeOptions): ProcReadableStream<T>
pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>
run(options: RunFnOptions, ...cmd: Cmd): ProcChildProcess
Run a process.
Note that this is not type safe. This should only be called on a
ProcReadableStream<Uint8Array>
. Calling this for other types will
cause a runtime error.
run(...cmd: Cmd): ProcChildProcess
Run a process.
Note that this is not type safe. This should only be called on a
ProcReadableStream<Uint8Array>
. Calling this for other types will
cause a runtime error.
tee(): [ProcReadableStream<R>, ProcReadableStream<R>]
[Symbol.asyncIterator](options?: { preventCancel?: boolean; }): AsyncIterableIterator<R>