Expand description
A generic timer scheduler module that can be integrated into a crossbeam based event loop or used to launch a background timer thread.
Structs§
- A notification that a timer has fired.
TimerSource
must beFromWindow
when dispatched toScriptThread
and must beFromWorker
when dispatched to aDedicatedGlobalWorkerScope
- The id to be used for a
TimerEvent
is defined by the correspondingTimerEventRequest
. - Requests a TimerEvent-Message be sent after the given duration.
- A queue of
TimerEventRequest
s that are stored in order of next-to-fire.
Enums§
- Describes the source that requested the
TimerEvent
.
Type Aliases§
- A callback to pass to the
TimerScheduler
to be called when the timer is dispatched.