Skip to main content
Module

std/node/stream.ts>finished

Deno standard library
Go to Latest
function finished
import { finished } from "https://deno.land/std@0.80.0/node/stream.ts";

Appends an ending callback triggered when a stream is no longer readable, writable or has experienced an error or a premature close event

Parameters

stream: StreamImplementations
options: FinishedOptions | null
callback: (err?: NodeErrorAbstraction | null) => void

Returns

() => void

Parameters

stream: StreamImplementations
callback: (err?: NodeErrorAbstraction | null) => void

Returns

() => void