dart-sdk/sdk/lib/async
Lasse R.H. Nielsen caf208a543 Make StreamIterator not delay pausing between requests.
The current implementation of StreamIterator has a one-element buffer which
allows it listen for the next even eagerly, and only pause if consumption
doesn't keep up with production.
However, StreamIterator is also used by both VM and dart2js implementations
of "await for", and according to the specification, the iterated stream
must be paused between loop iterations.

The CL removes the one-element buffer and forces a pause after each event.

R=floitsch@google.com

Review URL: https://codereview.chromium.org/2149893002 .
2016-09-26 09:35:46 +02:00
..
async.dart Fixing many link syntaxes in doc comments 2015-11-12 15:34:41 -05:00
async_error.dart Make Future.catchError return a typed Future. 2016-05-03 12:13:46 +02:00
async_sources.gypi Add factory-method for scheduleMicrotask, as well as a (failing) test. 2013-10-15 16:22:04 +00:00
broadcast_stream_controller.dart Make dart:async strong-mode clean. 2016-04-27 20:07:58 +02:00
deferred_load.dart Remove support for the DeferredLibrary annotation and remove tests of it 2014-09-03 08:34:34 +00:00
future.dart Don't propagate synchronous Future.wait errors immediately. 2016-09-06 11:57:43 +02:00
future_impl.dart Make _Future._chainForeignFuture not cause an assert. 2016-05-11 13:10:46 +02:00
schedule_microtask.dart Make dart:async strong-mode clean. 2016-04-27 20:07:58 +02:00
stream.dart Make StreamIterator not delay pausing between requests. 2016-09-26 09:35:46 +02:00
stream_controller.dart Hide strong mode casts in dart:async, factor out try/catch blocks into helpers, and hide some reified generic type information. This brings AsyncStressTest back to parity as measured on my machine. 2016-05-02 11:02:46 -07:00
stream_impl.dart Make StreamIterator not delay pausing between requests. 2016-09-26 09:35:46 +02:00
stream_pipe.dart Return futures on Stream.cancel when possible. 2016-09-05 17:41:22 +02:00
stream_transformers.dart Return futures on Stream.cancel when possible. 2016-09-05 17:41:22 +02:00
timer.dart Revert "Reapply zone tasks." 2016-07-18 13:12:36 -07:00
zone.dart Revert "Reapply zone tasks." 2016-07-18 13:12:36 -07:00