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

Unified Diff: lib/core/future.dart

Issue 10958021: If transformException() returns a future, act like chain(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Refactor out some common code. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/coreimpl/future_implementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/future.dart
diff --git a/lib/core/future.dart b/lib/core/future.dart
index 8c7207a3bea14eaa47a7271dafb6c5fc44eb866d..99af2415180efcd019af18bce4ad6a7800ef087b 100644
--- a/lib/core/future.dart
+++ b/lib/core/future.dart
@@ -132,7 +132,9 @@ abstract class Future<T> {
* exception occurs, then [transformation] will be called with the exception
* value. If [transformation] itself throws an exception, then the returned
* future completes with that exception. Otherwise, the future will complete
- * with the value returned by [transformation].
+ * with the value returned by [transformation]. If the returned value is
+ * itself a future, then the future returned by [transformException] will
+ * complete with the value that that future completes to.
*/
Future transformException(transformation(Object exception));
}
« no previous file with comments | « no previous file | lib/coreimpl/future_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698