mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 14:30:43 +00:00
Bug 1178665 - Part 1: Make Promise::DispatchToMicroTask public. r=khuey
This commit is contained in:
parent
79d86a6353
commit
39455891a5
@ -205,6 +205,10 @@ public:
|
||||
// Return a unique-to-the-process identifier for this Promise.
|
||||
uint64_t GetID();
|
||||
|
||||
// Queue an async microtask to current main or worker thread.
|
||||
static void
|
||||
DispatchToMicroTask(nsIRunnable* aRunnable);
|
||||
|
||||
protected:
|
||||
// Do NOT call this unless you're Promise::Create. I wish we could enforce
|
||||
// that from inside this class too, somehow.
|
||||
@ -212,10 +216,6 @@ protected:
|
||||
|
||||
virtual ~Promise();
|
||||
|
||||
// Queue an async microtask to current main or worker thread.
|
||||
static void
|
||||
DispatchToMicroTask(nsIRunnable* aRunnable);
|
||||
|
||||
// Do JS-wrapping after Promise creation.
|
||||
void CreateWrapper(ErrorResult& aRv);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user