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

Usage in Deno

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

Parameters

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

Return Type

void