A collection of futures waits until all added
Futures are added to the group with add. Once you're finished adding futures, signal that by calling close. Then, once all added futures have completed, future will complete with a list of values from the futures in the group, in the order they were added.
If any added future completes with an error, future will emit that error and the group will be closed, regardless of the state of other futures in the group.
This is similar to
eagerError set to
that a FutureGroup can have futures added gradually over time rather than
needing them all at once.
- Implemented types
The future that fires once close has been called and all futures in the
group have completed. [...]
- hashCode → int
The hash code for this object. [...]
- isIdle → bool
Whether this group has no pending futures.
- onIdle → Stream
A broadcast stream that emits a
nullevent whenever the last pending future in this group completes. [...]read-only
- runtimeType → Type
A representation of the runtime type of the object.
Future< T>task) → void
) → void
Signals to the group that the caller is done adding futures, and so
future should fire once all added futures have completed.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.