cancel

inline suspend fun <R : JsAny?> ReadableStream<R>.cancel(reason: JsError?)(source)
inline suspend fun <R : JsAny?> ReadableStream<R>.cancel()(source)

The cancel() method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.

MDN Reference


inline suspend fun ReadableStreamGenericReader.cancel(reason: JsError?)(source)

MDN Reference