DescriptionAdd `peek` and `lookAhead` to `StreamQueue`.
These allow users to look at events (similar to `next` and `take`)
without consuming them. For simple cases, they can be used instead of
`startTransaction` to decide what to do before doing it.
R=nweiz@google.com
Committed: https://github.com/dart-lang/async/commit/420d0840ae6f84f8be12aa39837b8499dbded0a6
Patch Set 1 #
Total comments: 14
Patch Set 2 : Address comments. #
Messages
Total messages: 11 (2 generated)
|