Skip to main content
ReadableStream.cancel - stream/web - Node documentation
method ReadableStream.cancel

Usage in Deno

import { type ReadableStream } from "node:stream/web";
ReadableStream.cancel(reason?: any): Promise<void>

Parameters

optional
reason: any

Return Type

Promise<void>