Class: Writer

Writer()

new Writer()

A wrapper class over the native WritableStreamDefaultWriter. It also lets you "write data to" array streams instead of streams.

Source:

Methods

(async) abort() → {Promise.<Object>}

Error the stream.

Source:
Returns:
Type
Promise.<Object>

(async) close() → {Promise.<undefined>}

Close the stream.

Source:
Returns:
Type
Promise.<undefined>

(async) releaseLock() → {undefined}

Release the writer's lock.

Source:
Returns:
Type
undefined

(async) write() → {Promise.<undefined>}

Write a chunk of data.

Source:
Returns:
Type
Promise.<undefined>