Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The stream.PassThrough
class is a trivial implementation of a Transform
stream that simply passes the input bytes across to the output. Its purpose is primarily for examples and testing, but there are some use cases where stream.PassThrough
is useful as a building block for novel sorts of streams.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
typealias PipelineDestinationIterableFunction<T> = (source: AsyncIterable<T>) -> AsyncIterable<Any?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Properties
Functions
Link copied to clipboard
A stream to attach a signal to.
Link copied to clipboard
external fun finished(stream: ReadWriteStream, callback: (err: ErrnoException?) -> Unit): () -> Unit
suspend external fun finished(stream: ReadWriteStream, options: FinishedOptions = definedExternally): Void
suspend external fun finished(stream: ReadableStream, options: FinishedOptions = definedExternally): Void
suspend external fun finished(stream: WritableStream, options: FinishedOptions = definedExternally): Void
external fun finished(stream: ReadWriteStream, options: FinishedOptions, callback: (err: ErrnoException?) -> Unit): () -> Unit
external fun finished(stream: ReadableStream, options: FinishedOptions, callback: (err: ErrnoException?) -> Unit): () -> Unit
external fun finished(stream: WritableStream, options: FinishedOptions, callback: (err: ErrnoException?) -> Unit): () -> Unit
A readable and/or writable stream/webstream.
Link copied to clipboard
external fun finishedAsync(stream: ReadWriteStream, options: FinishedOptions = definedExternally): Promise<Void>
external fun finishedAsync(stream: ReadableStream, options: FinishedOptions = definedExternally): Promise<Void>
external fun finishedAsync(stream: WritableStream, options: FinishedOptions = definedExternally): Promise<Void>
Link copied to clipboard
Returns the default highWaterMark used by streams. Defaults to 65536
(64 KiB), or 16
for objectMode
.
Link copied to clipboard
Returns whether the stream is readable.
Link copied to clipboard
external fun pipeline(streams: ReadonlyArray<Any>, callback: (err: ErrnoException?) -> Unit): WritableStream
suspend external fun pipeline(streams: ReadonlyArray<Any>, options: PipelineOptions = definedExternally): Void
suspend external fun <A : PipelineSource<Any?>, B : PipelineDestination<A, Any?>> pipeline(source: A, destination: B, options: PipelineOptions = definedExternally): Any?
suspend external fun pipeline(stream1: ReadableStream, stream2: ReadWriteStream, vararg streams: Any): Void
suspend external fun pipeline(stream1: ReadableStream, stream2: WritableStream, vararg streams: Any): Void
external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, B : PipelineDestination<T1, Any?>> pipeline(source: A, transform1: T1, destination: B, callback: PipelineCallback<B>): Any
suspend external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, B : PipelineDestination<T1, Any?>> pipeline(source: A, transform1: T1, destination: B, options: PipelineOptions = definedExternally): Any?
external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, T2 : PipelineTransform<T1, Any?>, B : PipelineDestination<T2, Any?>> pipeline(source: A, transform1: T1, transform2: T2, destination: B, callback: PipelineCallback<B>): Any
suspend external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, T2 : PipelineTransform<T1, Any?>, B : PipelineDestination<T2, Any?>> pipeline(source: A, transform1: T1, transform2: T2, destination: B, options: PipelineOptions = definedExternally): Any?
external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, T2 : PipelineTransform<T1, Any?>, T3 : PipelineTransform<T2, Any?>, B : PipelineDestination<T3, Any?>> pipeline(source: A, transform1: T1, transform2: T2, transform3: T3, destination: B, callback: PipelineCallback<B>): Any
suspend external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, T2 : PipelineTransform<T1, Any?>, T3 : PipelineTransform<T2, Any?>, B : PipelineDestination<T3, Any?>> pipeline(source: A, transform1: T1, transform2: T2, transform3: T3, destination: B, options: PipelineOptions = definedExternally): Any?
external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, T2 : PipelineTransform<T1, Any?>, T3 : PipelineTransform<T2, Any?>, T4 : PipelineTransform<T3, Any?>, B : PipelineDestination<T4, Any?>> pipeline(source: A, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: B, callback: PipelineCallback<B>): Any
suspend external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, T2 : PipelineTransform<T1, Any?>, T3 : PipelineTransform<T2, Any?>, T4 : PipelineTransform<T3, Any?>, B : PipelineDestination<T4, Any?>> pipeline(source: A, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: B, options: PipelineOptions = definedExternally): Any?
external fun <A : PipelineSource<Any?>, B : PipelineDestination<A, Any?>> pipeline(source: A, destination: B, callback: PipelineCallback<B>): Any
A module method to pipe between streams and generators forwarding errors and properly cleaning up and provide a callback when the pipeline is complete.
Link copied to clipboard
external fun pipelineAsync(streams: ReadonlyArray<Any>, options: PipelineOptions = definedExternally): Promise<Void>
external fun <A : PipelineSource<Any?>, B : PipelineDestination<A, Any?>> pipelineAsync(source: A, destination: B, options: PipelineOptions = definedExternally): PipelinePromise<B>
external fun pipelineAsync(stream1: ReadableStream, stream2: ReadWriteStream, vararg streams: Any): Promise<Void>
external fun pipelineAsync(stream1: ReadableStream, stream2: WritableStream, vararg streams: Any): Promise<Void>
external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, B : PipelineDestination<T1, Any?>> pipelineAsync(source: A, transform1: T1, destination: B, options: PipelineOptions = definedExternally): PipelinePromise<B>
external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, T2 : PipelineTransform<T1, Any?>, B : PipelineDestination<T2, Any?>> pipelineAsync(source: A, transform1: T1, transform2: T2, destination: B, options: PipelineOptions = definedExternally): PipelinePromise<B>
external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, T2 : PipelineTransform<T1, Any?>, T3 : PipelineTransform<T2, Any?>, B : PipelineDestination<T3, Any?>> pipelineAsync(source: A, transform1: T1, transform2: T2, transform3: T3, destination: B, options: PipelineOptions = definedExternally): PipelinePromise<B>
external fun <A : PipelineSource<Any?>, T1 : PipelineTransform<A, Any?>, T2 : PipelineTransform<T1, Any?>, T3 : PipelineTransform<T2, Any?>, T4 : PipelineTransform<T3, Any?>, B : PipelineDestination<T4, Any?>> pipelineAsync(source: A, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: B, options: PipelineOptions = definedExternally): PipelinePromise<B>
Link copied to clipboard
Sets the default highWaterMark used by streams.