summaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node.h b/src/node.h
index deaafb009d..90b2a8cbf6 100644
--- a/src/node.h
+++ b/src/node.h
@@ -225,6 +225,10 @@ class Environment;
class MultiIsolatePlatform : public v8::Platform {
public:
virtual ~MultiIsolatePlatform() { }
+ // Returns true if work was dispatched or executed. New tasks that are
+ // posted during flushing of the queue are postponed until the next
+ // flushing.
+ virtual bool FlushForegroundTasks(v8::Isolate* isolate) = 0;
virtual void DrainBackgroundTasks(v8::Isolate* isolate) = 0;
virtual void CancelPendingDelayedTasks(v8::Isolate* isolate) = 0;