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

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

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

Performs the given action function after the given timeoutMs milliseconds, unless the returns cancel function is called before the timer expires.

Parameters

action: () => unknown
  • the action function to perform
optional
timeoutMs: number
  • (optional) th

Returns

undefined | (() => void)