Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function timeoutAction
Re-export
import { timeoutAction } from "https://deno.land/x/rimbu@1.2.1/channel/custom/index.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)