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

Issue 1239543004: Fix a bug in 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

Fix a bug in StreamQueue.cancel(). If cancel was called on the queue before anything else, it wouldn't call StreamSubscription.cancel. R=lrn@google.com Committed: https://github.com/dart-lang/async/commit/5f908468abc0ecd10224d47033c3cb95a5c33b44

Patch Set 1 #

Total comments: 3

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M lib/src/stream_queue.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M test/stream_queue_test.dart View 3 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 7 (1 generated)
nweiz
5 years, 5 months ago (2015-07-13 21:54:35 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/1239543004/diff/1/lib/src/stream_queue.dart File lib/src/stream_queue.dart (right): https://codereview.chromium.org/1239543004/diff/1/lib/src/stream_queue.dart#newcode245 lib/src/stream_queue.dart:245: return request.future; That doesn't look right either - you ...
5 years, 5 months ago (2015-07-14 07:28:10 UTC) #3
nweiz
Code review changes
5 years, 5 months ago (2015-07-14 20:13:49 UTC) #4
nweiz
I think my version works as written, but you're right that yours is cleaner. https://codereview.chromium.org/1239543004/diff/1/lib/src/stream_queue.dart ...
5 years, 5 months ago (2015-07-14 20:14:08 UTC) #5
Lasse Reichstein Nielsen
lgtm
5 years, 5 months ago (2015-07-15 08:56:43 UTC) #6
nweiz
5 years, 5 months ago (2015-07-15 20:36:06 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
5f908468abc0ecd10224d47033c3cb95a5c33b44 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698