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

Issue 1221713005: Add an [immediate] argument to StreamQueue.cancel. (Closed)

Created:
5 years, 5 months ago by nweiz
Modified:
5 years, 5 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/async.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add an [immediate] argument to StreamQueue.cancel. Canceling the subscription immediately is useful for situations where the normal flow of a program is interrupted, for example by a signal on the command-line. R=lrn@google.com Committed: https://github.com/dart-lang/async/commit/ab774d6ecbce5689440dbfc80302c26a898b861b

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -10 lines) Patch
M lib/src/stream_queue.dart View 3 chunks +18 lines, -8 lines 7 comments Download
M test/stream_queue_test.dart View 2 chunks +56 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
nweiz
5 years, 5 months ago (2015-07-07 23:45:04 UTC) #2
Lasse Reichstein Nielsen
LGTM if separate function. https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart File lib/src/stream_queue.dart (right): https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart#newcode250 lib/src/stream_queue.dart:250: } This is really two ...
5 years, 5 months ago (2015-07-08 07:49:23 UTC) #3
nweiz
Committed patchset #1 (id:1) manually as ab774d6ecbce5689440dbfc80302c26a898b861b (presubmit successful).
5 years, 5 months ago (2015-07-09 00:52:48 UTC) #4
nweiz
https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart File lib/src/stream_queue.dart (right): https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart#newcode250 lib/src/stream_queue.dart:250: } On 2015/07/08 07:49:22, Lasse Reichstein Nielsen wrote: > ...
5 years, 5 months ago (2015-07-09 01:03:19 UTC) #5
Lasse Reichstein Nielsen
I still think I prefer it as a separate function, but let's get a third ...
5 years, 5 months ago (2015-07-09 08:31:58 UTC) #7
floitsch
https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart File lib/src/stream_queue.dart (right): https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart#newcode226 lib/src/stream_queue.dart:226: /// immediately. Any pending events will complete as though ...
5 years, 5 months ago (2015-07-09 09:47:52 UTC) #8
Lasse Reichstein Nielsen
On 2015/07/09 09:47:52, floitsch wrote: > One function looks fine to me. Ok, let's keep ...
5 years, 5 months ago (2015-07-09 10:50:20 UTC) #9
nweiz
https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart File lib/src/stream_queue.dart (right): https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart#newcode226 lib/src/stream_queue.dart:226: /// immediately. Any pending events will complete as though ...
5 years, 5 months ago (2015-07-09 19:43:36 UTC) #10
floitsch
https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart File lib/src/stream_queue.dart (right): https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart#newcode226 lib/src/stream_queue.dart:226: /// immediately. Any pending events will complete as though ...
5 years, 5 months ago (2015-07-13 09:39:38 UTC) #11
nweiz
https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart File lib/src/stream_queue.dart (right): https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart#newcode226 lib/src/stream_queue.dart:226: /// immediately. Any pending events will complete as though ...
5 years, 5 months ago (2015-07-13 20:07:21 UTC) #12
floitsch
5 years, 5 months ago (2015-07-17 19:31:07 UTC) #13
Message was sent while issue was closed.
On 2015/07/13 20:07:21, nweiz wrote:
> https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart
> File lib/src/stream_queue.dart (right):
> 
>
https://codereview.chromium.org/1221713005/diff/1/lib/src/stream_queue.dart#n...
> lib/src/stream_queue.dart:226: /// immediately. Any pending events will
complete
> as though the stream had
> On 2015/07/13 09:39:38, floitsch wrote:
> > On 2015/07/09 19:43:36, nweiz wrote:
> > > On 2015/07/09 09:47:52, floitsch wrote:
> > > > Could you please rewrite the "Any pending events ..." sentence. I had a
> hard
> > > > time understanding it.
> > > 
> > > Can you say more about what you didn't understand?
> > > 
> > > > Also don't use future tense.
> > > 
> > > Done in a separate CL.
> > 
> > Any pending events complete with a 'closed'-event, as though the stream had
> > closed by itself.
> 
> Right, but what about that sentence is confusing?

When I reviewed the CL the sentence was hard to read for me (and fwiw to others
I have asked).
I can't tell why, and I provided an alternative that feels easier to read for
me. It would be great if you found an even better way of expressing the sentence
(maybe even expanding it), but I would be already happy if you took my
alternative.

Powered by Google App Engine
This is Rietveld 408576698