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

Issue 2649033006: Add `peek` and `lookAhead` to `StreamQueue`. (Closed)

Created:
3 years, 11 months ago by Lasse Reichstein Nielsen
Modified:
3 years, 10 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add `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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -13 lines) Patch
M CHANGELOG.md View 1 1 chunk +5 lines, -0 lines 0 comments Download
M lib/src/stream_queue.dart View 1 10 chunks +97 lines, -12 lines 0 comments Download
M pubspec.yaml View 1 1 chunk +1 line, -1 line 0 comments Download
M test/stream_queue_test.dart View 1 2 chunks +94 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Lasse Reichstein Nielsen
3 years, 11 months ago (2017-01-24 08:29:42 UTC) #2
nweiz
https://codereview.chromium.org/2649033006/diff/1/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/2649033006/diff/1/CHANGELOG.md#newcode7 CHANGELOG.md:7: These allow users to look at events without consuming ...
3 years, 11 months ago (2017-01-24 22:37:59 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/2649033006/diff/1/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/2649033006/diff/1/CHANGELOG.md#newcode7 CHANGELOG.md:7: These allow users to look at events without consuming ...
3 years, 11 months ago (2017-01-25 07:58:03 UTC) #4
nweiz
https://codereview.chromium.org/2649033006/diff/1/lib/src/stream_queue.dart File lib/src/stream_queue.dart (right): https://codereview.chromium.org/2649033006/diff/1/lib/src/stream_queue.dart#newcode139 lib/src/stream_queue.dart:139: } On 2017/01/25 07:58:03, Lasse Reichstein Nielsen wrote: > ...
3 years, 11 months ago (2017-01-25 22:41:18 UTC) #5
Lasse Reichstein Nielsen
https://codereview.chromium.org/2649033006/diff/1/lib/src/stream_queue.dart File lib/src/stream_queue.dart (right): https://codereview.chromium.org/2649033006/diff/1/lib/src/stream_queue.dart#newcode139 lib/src/stream_queue.dart:139: } I've added a benchmark below. It shows that ...
3 years, 11 months ago (2017-01-26 12:13:43 UTC) #6
nweiz
> Libraries, platform or otherwise, should always assume that they are being > used in ...
3 years, 10 months ago (2017-01-26 22:51:26 UTC) #7
Lasse Reichstein Nielsen
On 2017/01/26 22:51:26, nweiz wrote: > > Libraries, platform or otherwise, should always assume that ...
3 years, 10 months ago (2017-01-27 11:46:25 UTC) #8
nweiz
lgtm
3 years, 10 months ago (2017-01-27 21:45:52 UTC) #9
Lasse Reichstein Nielsen
3 years, 10 months ago (2017-01-31 11:40:35 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
420d0840ae6f84f8be12aa39837b8499dbded0a6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698