| Index: utils/pub/error_group.dart
|
| diff --git a/utils/pub/error_group.dart b/utils/pub/error_group.dart
|
| index 0bdf5e5568d6b9e4d3a8a3d79feceba921170b6e..90edfa5179678e276142788b61472519e1f06280 100644
|
| --- a/utils/pub/error_group.dart
|
| +++ b/utils/pub/error_group.dart
|
| @@ -6,6 +6,8 @@ library error_group;
|
|
|
| import 'dart:async';
|
|
|
| +import 'utils.dart';
|
| +
|
| /// An [ErrorGroup] entangles the errors of multiple [Future]s and [Stream]s
|
| /// with one another. This allows APIs to expose multiple [Future]s and
|
| /// [Stream]s that have identical error conditions without forcing API consumers
|
| @@ -260,7 +262,7 @@ class _ErrorGroupStream extends Stream {
|
| if (_isDone) return;
|
| _subscription.cancel();
|
| // Call these asynchronously to work around issue 7913.
|
| - new Future.immediate(null).then((_) {
|
| + defer(() {
|
| _controller.signalError(e.error, e.stackTrace);
|
| _controller.close();
|
| });
|
|
|