Skip to main content

Module timers

Module timers 

Source

StructsΒ§

InitiatingScriptFetchInfo πŸ”’
JsTimerEntry πŸ”’
JsTimerHandle πŸ”’
JsTimerTask πŸ”’
JsTimerTaskData πŸ”’
JsTimers πŸ”’
OneshotTimer πŸ”’
OneshotTimerData πŸ”’
OneshotTimerHandle πŸ”’
OneshotTimers πŸ”’
OrderingEntry πŸ”’
RootedOneshotTimer πŸ”’
TimerEvent
A notification that a timer has fired. TimerSource must be FromWindow when dispatched to ScriptThread and must be FromWorker when dispatched to a DedicatedGlobalWorkerScope
TimerEventId
The id to be used for a TimerEvent is defined by the corresponding TimerEventRequest.
TimerListener πŸ”’
A wrapper between timer events coming in over IPC, and the event-loop.

EnumsΒ§

InternalTimerCallback πŸ”’
IsInterval πŸ”’
OneshotTimerCallback πŸ”’
OneshotTimerOrJsCallback πŸ”’
RootedInternalTimerCallback πŸ”’
RootedOneshotTimerOrJsCallback πŸ”’
TimerCallback πŸ”’
TimerListenerContext πŸ”’
A helper to refer to the global of the timer. For workers the scheduler is owned by the worker itself. For window sources, the Trusted reference would keep the window alive until the timer fires, so we lookup the global via the pipeline instead.
TimerSource
Describes the source that requested the TimerEvent.

FunctionsΒ§

active_script_fetch_info πŸ”’
https://html.spec.whatwg.org/multipage/#timer-initialisation-steps
clamp_duration πŸ”’
Step 5 of https://html.spec.whatwg.org/multipage/#timer-initialisation-steps
collect_heap_args πŸ”’
invoke_js_timer πŸ”’

Type AliasesΒ§

CompletionStep πŸ”’
OrderingIdentifier πŸ”’
https://html.spec.whatwg.org/multipage/#run-steps-after-a-timeout OrderingIdentifier per spec (β€œorderingIdentifier”)
OrderingQueues πŸ”’
RunStepsActiveMap πŸ”’
RunStepsDeadline πŸ”’
TimerKey πŸ”’