Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/_utils.ts>mustCall

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function mustCall
import { mustCall } from "https://deno.land/std@0.82.0/node/_utils.ts";

Type Parameters

T extends unknown[]

Parameters

optional
fn: ((...args: T) => void) = [UNSUPPORTED]
optional
expectedExecutions = [UNSUPPORTED]

Milliseconds to wait before the promise is forcefully exited

optional
timeout = [UNSUPPORTED]

Returns

[Promise<void>, (...args: T) => void]