Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: include/v8.h

Issue 620673005: Introduce HasPendingMicrotasks API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 2dc1bd81af8ce5bbd2a8ac0ed30f5f00eefc79b2..0790ac8c8170320c3ab1e80ef505c8100b406bbb 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -4829,6 +4829,13 @@ class V8_EXPORT Isolate {
bool WillAutorunMicrotasks() const;
/**
+ * Experimental: Returns whether the Microtask Work Queue has any more
+ * callbacks to run, not including the one that is currently being executed,
+ * if any.
+ */
+ bool HasPendingMicrotasks() const;
+
+ /**
* Sets a callback for counting the number of times a feature of V8 is used.
*/
void SetUseCounterCallback(UseCounterCallback callback);
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698