Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Unified Diff: lib/src/util/stream_queue.dart

Issue 2745253004: Add type info to fix analyzer failure, missed this one change in previous cl (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698