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

Issue 815773002: Add cleanUp function to Future.wait. (Closed)

Created:
6 years ago by Lasse Reichstein Nielsen
Modified:
5 years, 11 months ago
Reviewers:
Søren Gjesse, kevmoo
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Add cleanUp function to Future.wait. The cleanUp function is called on the values of successful futures, so it can release any resources that were successfully allocated. R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=42730

Patch Set 1 #

Total comments: 2

Patch Set 2 : Tests. Make cleanUp errors uncaught, not swallowed. #

Patch Set 3 : More test #

Total comments: 8

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -9 lines) Patch
M pkg/async_helper/lib/async_helper.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/async/future.dart View 1 2 3 3 chunks +31 lines, -8 lines 0 comments Download
M tests/lib/async/future_test.dart View 1 2 3 2 chunks +130 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Lasse Reichstein Nielsen
6 years ago (2014-12-18 15:38:19 UTC) #2
kevmoo
DBC Could we have tests for this? Also: is this strictly needed? The fact that ...
6 years ago (2014-12-18 23:17:51 UTC) #4
Lasse Reichstein Nielsen
Definitely needs tests. I did a quick upload of the base idea just before shutting ...
6 years ago (2014-12-19 06:54:11 UTC) #5
Søren Gjesse
lgtm https://codereview.chromium.org/815773002/diff/40001/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/815773002/diff/40001/sdk/lib/async/future.dart#newcode253 sdk/lib/async/future.dart:253: * The call to `cleanUp` must not throw. ...
5 years, 11 months ago (2015-01-09 10:04:11 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/815773002/diff/40001/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/815773002/diff/40001/sdk/lib/async/future.dart#newcode253 sdk/lib/async/future.dart:253: * The call to `cleanUp` must not throw. On ...
5 years, 11 months ago (2015-01-09 10:52:10 UTC) #7
Lasse Reichstein Nielsen
5 years, 11 months ago (2015-01-09 10:52:45 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 42730 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698