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

Issue 10537096: Revert changes to Future.chain() and Future.transform() from http://codereview.chromium.org/10517006 (Closed)

Created:
8 years, 6 months ago by sammccall
Modified:
8 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Revert changes to Future.chain() and Future.transform() from http://codereview.chromium.org/10517006 Since onComplete swallows exceptions, the new implementation doesn't propagate exceptions thrown by the transforming function, where there's a then() handler but no handleException() handler. The right fix is to invoke handlers (including the default 'throw the exception' error handler) on the event loop rather than synchronously, but there's no API for that in corelib yet. BUG=3489 Committed: https://code.google.com/p/dart/source/detail?r=8501

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -121 lines) Patch
M corelib/src/future.dart View 2 chunks +6 lines, -0 lines 0 comments Download
M corelib/src/implementation/future_implementation.dart View 2 chunks +17 lines, -15 lines 0 comments Download
M tests/corelib/future_test.dart View 4 chunks +4 lines, -106 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
sammccall
http://codereview.chromium.org/10537096/diff/1/tests/corelib/future_test.dart File tests/corelib/future_test.dart (right): http://codereview.chromium.org/10537096/diff/1/tests/corelib/future_test.dart#newcode393 tests/corelib/future_test.dart:393: Expect.throws(() => completer.complete("42"), check: (e) => e == error); ...
8 years, 6 months ago (2012-06-10 22:18:09 UTC) #1
Siggi Cherem (dart-lang)
lgtm
8 years, 6 months ago (2012-06-11 16:02:15 UTC) #2
Siggi Cherem (dart-lang)
8 years, 6 months ago (2012-06-11 16:09:45 UTC) #3
submitted in r8501

Powered by Google App Engine
This is Rietveld 408576698