/** * Called by Flusher. */ void flushPostEventPumpCommands() { if (deferredCommands != null) { JsArray<Task> oldDeferred = deferredCommands; deferredCommands = null; /* We might not have any incremental commands queued. */ if (incrementalCommands == null) { incrementalCommands = createQueue(); } runScheduledTasks(oldDeferred, incrementalCommands); } if (incrementalCommands != null) { incrementalCommands = runRepeatingTasks(incrementalCommands); } }
/** * Called by Flusher. */ void flushPostEventPumpCommands() { if (deferredCommands != null) { JsArray<Task> oldDeferred = deferredCommands; deferredCommands = null; /* We might not have any incremental commands queued. */ if (incrementalCommands == null) { incrementalCommands = createQueue(); } runScheduledTasks(oldDeferred, incrementalCommands); } if (incrementalCommands != null) { incrementalCommands = runRepeatingTasks(incrementalCommands); } }
/** * Called by Flusher. */ void flushPostEventPumpCommands() { if (deferredCommands != null) { JsArray<Task> oldDeferred = deferredCommands; deferredCommands = null; /* We might not have any incremental commands queued. */ if (incrementalCommands == null) { incrementalCommands = createQueue(); } runScheduledTasks(oldDeferred, incrementalCommands); } if (incrementalCommands != null) { incrementalCommands = runRepeatingTasks(incrementalCommands); } }
/** * Called by Flusher. */ void flushPostEventPumpCommands() { if (deferredCommands != null) { JsArray<Task> oldDeferred = deferredCommands; deferredCommands = null; /* We might not have any incremental commands queued. */ if (incrementalCommands == null) { incrementalCommands = createQueue(); } runScheduledTasks(oldDeferred, incrementalCommands); } if (incrementalCommands != null) { incrementalCommands = runRepeatingTasks(incrementalCommands); } }