Confirmed users
130
edits
Wmccloskey (talk | contribs) (change script loader example to avoid null docgroup issue) |
Wmccloskey (talk | contribs) (small changes for language) |
||
| Line 195: | Line 195: | ||
== 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). | |||
=== Example === | === Example === | ||