Timer.scheduleOnce() method

Calling scheduleOnce() queues the timer to be called back once after the specified delay.

Syntax

Timer.scheduleOnce(delay)

Parameters

Return value

None (undefined).

Example

> timer = new Timer(() => console.log("Fired!"));
undefined
> timer.scheduleOnce(2);
undefined
Fired!

References