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

Unified Diff: lib/src/stream_splitter.dart

Issue 1205143002: Use a List rather than a Queue in StreamSplitter. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Created 5 years, 6 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/stream_splitter.dart
diff --git a/lib/src/stream_splitter.dart b/lib/src/stream_splitter.dart
index addba93431aeeff342b26211d7c6da527234dbf7..6ec440f5dd8e5c2c83754e73020f8f34a3e1852d 100644
--- a/lib/src/stream_splitter.dart
+++ b/lib/src/stream_splitter.dart
@@ -35,7 +35,7 @@ class StreamSplitter<T> {
/// The buffer of events or errors that have already been emitted by
/// [_stream].
- final _buffer = new Queue<Result<T>>();
+ final _buffer = new List<Result<T>>();
/// The controllers for branches that are listening for future events from
/// [_stream].
« 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