lib/streams.js
function getWriter(input) {
  const writer = input.getWriter();
  const releaseLock = writer.releaseLock;
  writer.releaseLock = () => {
    writer.closed.catch(function() {});
    releaseLock.call(writer);
  };
  return writer;
}
function getWriter(input) {
  const writer = input.getWriter();
  const releaseLock = writer.releaseLock;
  writer.releaseLock = () => {
    writer.closed.catch(function() {});
    releaseLock.call(writer);
  };
  return writer;
}
function getWriter ( input ) { const writer = input . getWriter ( ) ; const releaseLock = writer . releaseLock ; writer . releaseLock = ( ) => { writer . closed . catch ( function ( ) { } ) ; releaseLock . call ( writer ) ; } ; return writer ; }
Get a Writer
@param {WritableStream} input
@returns {WritableStreamDefaultWriter}
Get a Writer