Quantum/DOM: Difference between revisions

Jump to navigation Jump to search
small changes for language
(change script loader example to avoid null docgroup issue)
(small changes for language)
Line 195: Line 195:


== AbstractThread::MainThread ==
== AbstractThread::MainThread ==
The AbstractThread::MainThread is a singleton of the AbstractThread wrapper for the main thread and is widely used with MozPromise and its Promise-chain. If AbstractThread::MainThread adopted in your implementation is related to a document or a window, to join the labeling, you can replace it with '''AbstractMainThreadFor''' provided from the Dispatcher interface.
AbstractThread::MainThread() is a singleton of the AbstractThread wrapper class for the main thread and is widely used with MozPromise and its Promise-chain. If you use AbstractThread::MainThread() in your code and you have access to a document or a window, you can replace it with '''AbstractMainThreadFor''' provided the document or window object (or by TabGroup or DocGroup directly).


=== Example ===
=== Example ===
Confirmed users
130

edits

Navigation menu