Functions
Link copied to clipboard
external fun from(iterable: AsyncIterable<Any?>, options: ReadableOptions<*> = definedExternally): Readable
external fun from(iterable: JsIterable<Any?>, options: ReadableOptions<*> = definedExternally): Readable
A utility method for creating Readable Streams out of iterators.
Link copied to clipboard
external 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
external fun toWeb(streamReadable: Readable, options: ReadableToWebOptions = definedExternally): ReadableStream<*>
A utility method for creating a web ReadableStream from a Readable.