abort

inline suspend fun <W : JsAny?> WritableStream<W>.abort(reason: JsError?)(source)
inline suspend fun <W : JsAny?> WritableStream<W>.abort()(source)

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.

MDN Reference


inline suspend fun <W : JsAny?> WritableStreamDefaultWriter<W>.abort(reason: JsError?)(source)
inline suspend fun <W : JsAny?> WritableStreamDefaultWriter<W>.abort()(source)

The abort() method of the WritableStreamDefaultWriter 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.

MDN Reference