AsyncScheduler class
Asynchronous scheduler that keeps track of pending actions manually.
- Inheritance
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPending → bool
-
Returns
true
, if there are actions pending.no setter - now → DateTime
-
Returns the current time.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scheduled
→ SplayTreeMap<
DateTime, List< SchedulerAction> > -
Sorted list of pending actions.
final
Methods
-
flush(
) → void - Performs all the eligible pending actions.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
schedule(
Callback0 callback) → Disposable -
Schedules a
callback
to be executed.override -
scheduleAbsolute(
DateTime dateTime, Callback0 callback) → Disposable -
Schedules a
callback
to be executed at the specifieddateTime
.override -
scheduleIteration(
Predicate0 callback) → Disposable -
Schedules a
callback
to be executed while its return value istrue
.override -
schedulePeriodic(
Duration duration, Callback1< Disposable> callback) → Disposable -
Schedules a
callback
to be executed periodically everyduration
.override -
scheduleRelative(
Duration duration, Callback0 callback) → Disposable -
Schedules a
callback
to be executed after the specifiedduration
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited