Represents a timeout that can be cancelled.

When racing a timeout, and another task completes before the timeout, then the timeout should be cancelled. This prevents leaving open handles which can stop the runtime from exiting.

Hierarchy

  • CancelableTimeout

Properties

Properties

cancel: VoidFunction
promise: Promise<void>

Generated using TypeDoc