ParallelWaitError<V, E> constructor

ParallelWaitError<V, E>(
  1. V values,
  2. E errors, {
  3. @Since.new("3.4") int? _errorCount,
  4. @Since.new("3.4") AsyncError? _defaultError,
})

Creates error with the provided values and errors.

If _defaultError is provided, its AsyncError.error is used in the toString of this parallel error, and its AsyncError.stackTrace is returned by stackTrace.

If _errorCount is provided, and it's greater than one, the number is reported in the toString.

Implementation

ParallelWaitError(
  this.values,
  this.errors, {
  @Since("3.4") this._errorCount,
  @Since("3.4") this._defaultError,
});