API Reference 0.3.24dart_web_toolkit_schedulerFlusher

Flusher class

Calls {@link SchedulerImpl#flushPostEventPumpCommands()}.

class Flusher implements RepeatingCommand {

 SchedulerImpl _schedulerImpl;

 Flusher(this._schedulerImpl);

 bool execute() {

   _schedulerImpl._flushRunning = true;
   _schedulerImpl.flushPostEventPumpCommands();
   /*
    * No finally here, we want this to be clear only on a normal exit. An
    * abnormal exit would indicate that an exception isn't being caught
    * correctly or that a slow script warning canceled the timer.
    */
   _schedulerImpl._flushRunning = false;
   return _schedulerImpl._shouldBeRunning = _schedulerImpl.isWorkQueued();
 }
}

Implements

RepeatingCommand

Constructors

new Flusher(SchedulerImpl _schedulerImpl) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
Flusher(this._schedulerImpl);

Methods

bool execute() #

Returns true if the RepeatingCommand should be invoked again.

docs inherited from RepeatingCommand
bool execute() {

 _schedulerImpl._flushRunning = true;
 _schedulerImpl.flushPostEventPumpCommands();
 /*
  * No finally here, we want this to be clear only on a normal exit. An
  * abnormal exit would indicate that an exception isn't being caught
  * correctly or that a slow script warning canceled the timer.
  */
 _schedulerImpl._flushRunning = false;
 return _schedulerImpl._shouldBeRunning = _schedulerImpl.isWorkQueued();
}