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

Unified Diff: sdk/lib/async/stream_impl.dart

Issue 99463005: Update stream iterator doc and add test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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
Index: sdk/lib/async/stream_impl.dart
diff --git a/sdk/lib/async/stream_impl.dart b/sdk/lib/async/stream_impl.dart
index 3d7a2b377535a320b1cfa4581d2c76bb32006b38..78c408772e60387f6a3289276d61dadfedd3cdbf 100644
--- a/sdk/lib/async/stream_impl.dart
+++ b/sdk/lib/async/stream_impl.dart
@@ -952,6 +952,7 @@ class _StreamIteratorImpl<T> implements StreamIterator<T> {
}
if (_state == _STATE_FOUND) {
_state = _STATE_MOVING;
+ _current = null;
_futureOrPrefetch = new _Future<bool>();
return _futureOrPrefetch;
} else {

Powered by Google App Engine
This is Rietveld 408576698