Represents a delay that the caller can cancel.
Awaiting a canceled delay rejects with CancelError. Canceling a delay after it has completed has no effect.
Creates a delay in milliseconds. Its timer does not keep Node.js alive.
Static
Cancels a pending delay.
Represents a delay that the caller can cancel.
Awaiting a canceled delay rejects with CancelError. Canceling a delay after it has completed has no effect.