Index: lib/src/util/stream_queue.dart |
diff --git a/lib/src/util/stream_queue.dart b/lib/src/util/stream_queue.dart |
index c37c2ca05d8072d780ae917ce0c70c9bfa930f6a..5b2ac97038ab7635ff6eaaa2292bde6dbd3ccf0c 100644 |
--- a/lib/src/util/stream_queue.dart |
+++ b/lib/src/util/stream_queue.dart |
@@ -439,7 +439,7 @@ class _NextRequest<T> implements _EventRequest { |
} |
void close(Queue<Result> events) { |
- var errorFuture = |
+ Future<T> errorFuture = |
new Future.sync(() => throw new StateError("No elements")); |
kevmoo
2017/03/14 19:04:01
Instead of this, try doing `new Future<T>.sync` –
keertip
2017/03/14 19:12:49
Done.
|
_completer.complete(errorFuture); |
} |