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

x/rimbu/channel/custom/utils/utils.ts>timeout

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function timeout
import { timeout } from "https://deno.land/x/rimbu@1.1.0/channel/custom/utils/utils.ts";

Returns a promise that is resolved after the given amount of milliseconds.

Parameters

optional
timeOutMs: number
  • (optional) the amount of milliseconds to wait to resolve

Returns

Promise<void>