DescriptionMake 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
Committed: https://github.com/dart-lang/sdk/commit/caf208a54381ddaafb00d4f8b2910f7583e5faca
Patch Set 1 #
Total comments: 1
Patch Set 2 : #Patch Set 3 : Avoid pausing if moveNext is called immediately in response to the event. #Patch Set 4 : Remove VM changes, not compatible with later changes, update streamiterator. #
Total comments: 2
Patch Set 5 : Address comment. #
Messages
Total messages: 12 (2 generated)
|