Cancels a timer previously created with setTimeout.
The handle returned by setTimeout.
Returns the current time.
Milliseconds since an implementation-defined epoch (the Unix epoch for systemClock).
Schedules fn to run after approximately ms milliseconds.
The callback to invoke when the delay elapses.
Delay in milliseconds.
An opaque handle that can be passed to clearTimeout.
Abstraction over time and timers.
Components that need the current time or need to schedule work take a
Clockrather than callingDate.now/setTimeoutdirectly. In production pass systemClock; in tests pass a ManualClock to advance time deterministically.