futurise • Docs
futurise / delay
delay<
F
>(duration
,callable
,options
):DelayedFunction
<F
>
Delays invocations of the provided callable
for a given duration
.
• F extends (...args
) => any
• 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.
The function that delays calls to the callable.