Skip to content

Latest commit

 

History

History
39 lines (20 loc) · 892 Bytes

delay.md

File metadata and controls

39 lines (20 loc) · 892 Bytes

futuriseDocs


futurise / delay

Function: delay()

delay<F>(duration, callable, options): DelayedFunction<F>

Delays invocations of the provided callable for a given duration.

Type Parameters

F extends (...args) => any

Parameters

duration: number

The delay duration in milliseconds.

callable: F

The callable to delay.

options: DelayOptions = {}

Options to set when the first call happens and whether to throttle it.

Returns

DelayedFunction<F>

The function that delays calls to the callable.

Defined in

tools/delay.ts:13