Skip to main content

Interface: SleepOptions

@sapphire/utilities.SleepOptions

Properties

ref

Optional ref: boolean

Set to false to indicate that the scheduled Timeout should not require the Node.js event loop to remain active.

Default

true

Defined in

lib/sleep.ts:12


signal

Optional signal: AbortSignal

When provided the corresponding AbortController can be used to cancel an asynchronous action.

Defined in

lib/sleep.ts:5