Skip to content

ReadableWritablePair

[<Interface>]
type ReadableWritablePair<'R, 'W> =
    abstract member readable: ReadableStream<'R> with get, set
    abstract member writable: WritableStream<'W> with get, set
    static member Create (readable: ReadableStream<'R>, writable: WritableStream<'W>) : ReadableWritablePair<'R,'W>
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member readable: ReadableStream<'R> with get, set
abstract member writable: WritableStream<'W> with get, set

Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.

Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.

Methods

static member Create (readable: ReadableStream<'R>, writable: WritableStream<'W>) : ReadableWritablePair<'R,'W>