A collection of futures waits until all added Futures complete.
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.
The future that fires once close has been called and all futures in the
group have completed. [...]
- 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
- hashCode → int
The hash code for this object. [...]
- 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.