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

Unified Diff: corelib/src/future.dart

Issue 10537096: Revert changes to Future.chain() and Future.transform() from http://codereview.chromium.org/10517006 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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
Index: corelib/src/future.dart
===================================================================
--- corelib/src/future.dart (revision 8478)
+++ corelib/src/future.dart (working copy)
@@ -97,6 +97,9 @@
*
* If an exception occurs (received by this future, or thrown by
* [transformation]) then the returned future will receive the exception.
+ *
+ * You must not add exception handlers to [this] future prior to calling
+ * transform, and any you add afterwards will not be invoked.
*/
Future transform(transformation(T value));
@@ -111,6 +114,9 @@
* If an exception occurs (received by this future, thrown by
* [transformation], or received by the future returned by [transformation])
* then the returned future will receive the exception.
+ *
+ * You must not add exception handlers to [this] future prior to calling
+ * chain, and any you add afterwards will not be invoked.
*/
Future chain(Future transformation(T value));
}
« no previous file with comments | « no previous file | corelib/src/implementation/future_implementation.dart » ('j') | tests/corelib/future_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698