Liking cljdoc? Tell your friends :D
ClojureScript only.

web.WritableStreamDefaultController

The WritableStreamDefaultController interface of the the Streams represents a controller allowing control of a web.WritableStream's When constructing a WritableStream, the underlying sink is given corresponding WritableStreamDefaultController instance to manipulate.

The WritableStreamDefaultController interface of the the Streams
represents a controller allowing control of a `web.WritableStream`'s
When constructing a WritableStream, the underlying sink is given
corresponding WritableStreamDefaultController instance to manipulate.
raw docstring

constructorcljs

Constructor.

The WritableStreamDefaultController() constructor creates and returns a WritableStreamDefaultController() object instance.

stream The web.WritableStream to be controlled. underlyingSink An object containing methods and properties that define how the constructed stream instance will behave. See the web.WritableStream() for more information. size A method containing a parameter chunk — this indicates the size to use for each chunk, in bytes. highWaterMark A non-negative integer — this defines the total number of chunks that can be contained in the internal queue before backpressure is applied.

See also: https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController/WritableStreamDefaultController

Constructor.

The WritableStreamDefaultController() constructor creates and returns a WritableStreamDefaultController() object instance.

stream
The `web.WritableStream` to be controlled.
underlyingSink
An object containing methods and properties that define how the constructed stream instance will behave. See the `web.WritableStream()` for more information.
size
A method containing a parameter chunk — this indicates the size to use for each chunk, in bytes.
highWaterMark
A non-negative integer — this defines the total number of chunks that can be contained in the internal queue before backpressure is applied.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController/WritableStreamDefaultController`
sourceraw docstring

errorcljs

(error this e)

Method.

The error() method of the web.WritableStreamDefaultController causes any future interactions with the associated stream to

writableStreamDefaultControllerInstance.error(e);

See also: https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController/error

Method.

The error() method of the `web.WritableStreamDefaultController`
causes any future interactions with the associated stream to

`writableStreamDefaultControllerInstance.error(e);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController/error`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close