Module messaging

Source

Structsยง

ScriptThreadReceivers ๐Ÿ”’
ScriptThreadSenders ๐Ÿ”’

Enumsยง

CommonScriptMsg ๐Ÿ”’
Common messages used to control the event loops in both the script and the worker
MainThreadScriptMsg ๐Ÿ”’
Messages used to control the script event loop.
MixedMessage ๐Ÿ”’
ScriptEventLoopReceiver ๐Ÿ”’
A wrapper around various types of Receivers that receive event loop messages. Used for synchronous DOM APIs that need to abstract over multiple kinds of event loops (worker/main thread) with different Receiver interfaces.
ScriptEventLoopSender ๐Ÿ”’
A wrapper around various types of Senders that send messages back to the event loop of a script context event loop. This will either target the main ScriptThread event loop or that of a worker.