ParallelWaitError class - dart:async library (original) (raw)

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.

Inheritance

Annotations

Constructors

ParallelWaitError(V values, E errors, {@Since("3.4") int? errorCount, @Since("3.4") AsyncError? defaultError})

Creates error with the provided values and errors.

Properties

errors → E

Errors of failing futures.

final

hashCodeint

The hash code for this object.

no setterinherited

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

stackTraceStackTrace?

The stack trace at the point where this error was first thrown.

no setteroverride

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