new Writer()
A wrapper class over the native WritableStreamDefaultWriter. It also lets you "write data to" array streams instead of streams.
Methods
(async) abort() → {Promise.<Object>}
Error the stream.
Returns:
- Type
- Promise.<Object>
(async) close() → {Promise.<undefined>}
Close the stream.
Returns:
- Type
- Promise.<undefined>
(async) releaseLock() → {undefined}
Release the writer's lock.
Returns:
- Type
- undefined
(async) write() → {Promise.<undefined>}
Write a chunk of data.
Returns:
- Type
- Promise.<undefined>