Companion

Functions

Link copied to clipboard
fun from(iterable: AsyncIterable<Any?>, options: ReadableOptions = definedExternally): Readable
fun from(iterable: JsIterable<Any?>, options: ReadableOptions = definedExternally): Readable

A utility method for creating Readable Streams out of iterators.

Link copied to clipboard
fun fromWeb(readableStream: ReadableStream<*>, options: ReadableOptions = definedExternally): Readable

A utility method for creating a Readable from a web ReadableStream.

Link copied to clipboard

Returns whether the stream has been read from or cancelled.

Link copied to clipboard
fun toWeb(streamReadable: Readable): ReadableStream<*>

A utility method for creating a web ReadableStream from a Readable.