ParallelWaitError<V, E> class
Error thrown when waiting for multiple futures, when some have errors.
The V
and E
types will have the same basic shape as the
original collection of futures that was waited on.
For example, if the original awaited futures were a record
(Future<T1>, ..., Future<Tn>)
,
the type V
will be (T1?, ..., Tn?)
which allows keeping the
values of futures that completed with a value,
and E
will be (AsyncError?, ..., AsyncError?)
, also with n
fields, which can contain the errors for the futures which completed
with an error.
Waiting for a list or iterable of futures should provide a list of nullable values and errors of the same length.
Constructors
- ParallelWaitError(V values, E errors)
- Creates error with the provided values and errors.
Properties
- errors → E
-
Errors of failing futures.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- stackTrace → StackTrace?
-
The stack trace at the point where this error was first thrown.
read-onlyinherited
- values → V
-
Values of successful futures.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited