FutureTracker class

Tracks in-flight Futures and exposes a single future that completes when all tracked futures have finished.

Use trackFuture to register a future. The aggregate future completes once every tracked future has resolved (successfully or with an error). After all tracked futures complete, the tracker resets automatically for the next cycle.

Constructors

FutureTracker()

Properties

future Future<void>
A Future that completes when all currently tracked futures have finished. Returns an already-completed future if nothing is tracked.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets the tracker, completing any pending aggregate future immediately.
toString() String
A string representation of this object.
inherited
trackFuture(Future<void> f) → void
Tracks f so that future will not complete until f has.

Operators

operator ==(Object other) bool
The equality operator.
inherited