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

Issue 2444363004: Handle the case of Stream.take(0) better. (Closed)

Created:
4 years, 1 month ago by Lasse Reichstein Nielsen
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Handle the case of Stream.take(0) better. The current implementation listens to the stream and waits for it to complete. The change makes it listen and then immediately cancel, and then return a subscription that only sends done. R=floitsch@google.com Committed: https://github.com/dart-lang/sdk/commit/8cead4090cc0b1184a2ad552003ac38cae1e2c77 Committed: https://github.com/dart-lang/sdk/commit/9ebef9af7c7086a4e0f935b3ebd29aa4e990da91 Committed: https://github.com/dart-lang/sdk/commit/7bb7f5e6bb5c75471bb3f4f46a3eea0e1e3d1c36

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments #

Patch Set 3 : Fix typo. #

Patch Set 4 : Update docs and co19 test expectations. #

Patch Set 5 : Fix test expectation #

Patch Set 6 : Update status for failing tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M tests/co19/co19-runtime.status View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/lib.status View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
Lasse Reichstein Nielsen
4 years, 1 month ago (2016-10-26 07:24:29 UTC) #2
floitsch
LGTM. I wonder if the `take` should wait for the `cancel` to finish, so that ...
4 years, 1 month ago (2016-10-31 17:09:31 UTC) #3
Lasse Reichstein Nielsen
Committed patchset #4 (id:60001) manually as 8cead4090cc0b1184a2ad552003ac38cae1e2c77 (presubmit successful).
4 years, 1 month ago (2016-11-04 13:55:05 UTC) #5
Lasse Reichstein Nielsen
Committed patchset #4 (id:60001) manually as 9ebef9af7c7086a4e0f935b3ebd29aa4e990da91 (presubmit successful).
4 years, 1 month ago (2016-11-04 14:55:10 UTC) #7
Lasse Reichstein Nielsen
4 years, 1 month ago (2016-11-07 10:48:55 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
7bb7f5e6bb5c75471bb3f4f46a3eea0e1e3d1c36 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698