Skip to main content
internal.StreamOptions.destroy - stream - Node documentation
method internal.StreamOptions.destroy

Usage in Deno

import { type internal } from "node:stream";
StreamOptions.destroy(
this: T,
error: Error | null,
callback: (error?: Error | null) => void,
): void

Parameters

this: T
error: Error | null
callback: (error?: Error | null) => void

Return Type

void