sleep
Delays execution for a specified number of milliseconds.
Import:
import { sleep } from '@mnaoumov/typescript-lib/async';Signature:
function sleep(params: SleepParams): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
SleepParams | The parameters for the function. |
Returns: Promise<void> — A Promise that resolves after the specified delay.
Links to this page: