Quantum/DOM: Difference between revisions

Jump to navigation Jump to search
m
Line 217: Line 217:


== AbstractThread::MainThread ==
== AbstractThread::MainThread ==
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).
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 by the document or window object (or by TabGroup or DocGroup directly).


=== Example ===
=== Example ===
Confirmed users
205

edits

Navigation menu