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

Issue 1014273003: Make await for cancel the stream when breaking out of the loop (Closed)

Created:
5 years, 9 months ago by hausner
Modified:
5 years, 9 months ago
Reviewers:
Lasse Reichstein, regis
CC:
reviews_dartlang.org, vm-dev_dartlang.org, sigurdm
Visibility:
Public.

Description

Make await for cancel the stream when breaking out of the loop Wrap the await-for loop in a try-finally statement that ensures that the stream is cancelled. Also adding the ability to the AsyncStartStreamController class to return a cancellation future. The cancel() call at the end of the await-for loop is not awaiting the cancellation future yet. This is not part of the spec at this point. R=regis@google.com Committed: https://code.google.com/p/dart/source/detail?r=44689

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -20 lines) Patch
M runtime/lib/core_patch.dart View 1 4 chunks +20 lines, -1 line 0 comments Download
M runtime/vm/ast.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/ast_printer.cc View 1 chunk +1 line, -3 lines 0 comments Download
M runtime/vm/parser.cc View 1 7 chunks +127 lines, -12 lines 0 comments Download
M tests/language/language.status View 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
hausner
5 years, 9 months ago (2015-03-24 23:18:39 UTC) #2
regis
LGTM with comments https://codereview.chromium.org/1014273003/diff/1/runtime/lib/core_patch.dart File runtime/lib/core_patch.dart (right): https://codereview.chromium.org/1014273003/diff/1/runtime/lib/core_patch.dart#newcode97 runtime/lib/core_patch.dart:97: if ((cancellationCompleter != null && Redundant ...
5 years, 9 months ago (2015-03-24 23:46:27 UTC) #3
hausner
Thanks Regis. Comments addressed. I'll wait for Lasse's feedback and check in tomorrow morning. https://codereview.chromium.org/1014273003/diff/1/runtime/lib/core_patch.dart ...
5 years, 9 months ago (2015-03-24 23:57:29 UTC) #4
hausner
Committed patchset #2 (id:20001) manually as r44689 (presubmit successful).
5 years, 9 months ago (2015-03-25 17:41:48 UTC) #5
hausner
5 years, 9 months ago (2015-03-25 17:43:11 UTC) #6
Message was sent while issue was closed.
If Lasse has any comments, I'll address them in a later CL.

Powered by Google App Engine
This is Rietveld 408576698