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

x/rimbu/channel/custom/index.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.0/channel/custom/index.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>