Skip to content

delay

delay(seconds): Promise<void>

Defined in: utils/promise/functions.ts:6

Delays the execution of the subsequent code.

Parameters

seconds

number = 0

The delay time in seconds. Default is 0.

Returns

Promise<void>

A promise that resolves after the specified delay.