Create a timer based on Performance and setTimeout
Create a VirtualClock
(optional) :: Time to start at
Create a VirtualTimer. Useful for testing.
Attempts to schedule a task to be performed when the event queue is clear.
:: ({ didTimeout:: boolean; timeRemaining :: (* -> number) } -> number -> *)
:: Timer
Disposable
Run a function when idle when in a browser falling back to a specified timeout within node.
:: (RequestIdleCallbackDeadline -> number -> *)
:: number
:: Timer
Disposable
Generated using TypeDoc
@typed/timer