summaryrefslogtreecommitdiffstats
path: root/js/public/Promise.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/public/Promise.h')
-rw-r--r--js/public/Promise.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/public/Promise.h b/js/public/Promise.h
index 221d6fdfee..75bc7fd837 100644
--- a/js/public/Promise.h
+++ b/js/public/Promise.h
@@ -80,6 +80,12 @@ class JS_PUBLIC_API JobQueue {
*/
virtual bool empty() const = 0;
+ /**
+ * Returns true if the job queue stops draining, which results in `empty()`
+ * being false after `runJobs()`.
+ */
+ virtual bool isDrainingStopped() const = 0;
+
protected:
friend class AutoDebuggerJobQueueInterruption;