Skip to main content

Module job_queue

Module job_queue 

Source
Expand description

Implementation of microtasks and microtask queues. It is up to implementations of event loops to store a queue and perform checkpoints at appropriate times, as well as enqueue microtasks as required.

Structsยง

CustomElementReactionMicrotask
JobQueue ๐Ÿ”’
NotifyMutationObserversMicrotask
UserMicrotask ๐Ÿ”’
A microtask that comes from a queueMicrotask() Javascript call

Staticsยง

JOB_QUEUE_TRAPS ๐Ÿ”’

Traitsยง

MicrotaskRunnable ๐Ÿ”’

Functionsยง

enqueue ๐Ÿ”’
Add a new microtask to this queue. It will be invoked as part of the next microtask checkpoint.
get_host_defined_data ๐Ÿ”’ โš 
https://searchfox.org/firefox-main/rev/446c6e609dbd7c355c2fb27209dfe4833211991f/xpcom/base/CycleCollectedJSContext.cpp#229
get_host_defined_global ๐Ÿ”’ โš 
https://searchfox.org/firefox-main/rev/446c6e609dbd7c355c2fb27209dfe4833211991f/xpcom/base/CycleCollectedJSContext.cpp#199
job_queue_clear ๐Ÿ”’
job_queue_microtask_checkpoint ๐Ÿ”’
https://html.spec.whatwg.org/multipage/#perform-a-microtask-checkpoint Perform a microtask checkpoint, executing all queued microtasks until the queue is empty.
microtask_from_jsval ๐Ÿ”’
run_jobs ๐Ÿ”’ โš 
trace_non_gc_things_micro_task ๐Ÿ”’ โš