Skip to main content
The Deno 2 Release Candidate is 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.2.1/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>