abort method

JSPromise<JSAny?> abort([
  1. JSAny? reason
])

The abort() method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.

Implementation

external JSPromise<JSAny?> abort([JSAny? reason]);