@ac-essentials/misc-util
Preparing search index...
delay
Function delay
delay
<
T
,
R
>
(
delayMs
:
number
,
callback
:
MaybeAsyncCallable
<
T
[]
,
R
>
,
...
args
:
T
[]
,
)
:
Promise
<
R
>
Delay the execution of a callback function by a specified number of milliseconds.
Type Parameters
T
R
Parameters
delayMs
:
number
callback
:
MaybeAsyncCallable
<
T
[]
,
R
>
...
args
:
T
[]
Returns
Promise
<
R
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@ac-essentials/misc-util
Loading...
Delay the execution of a callback function by a specified number of milliseconds.