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

Unified Diff: sdk/lib/async/future.dart

Issue 12213092: Rework Timer interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 10 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 | « sdk/lib/async/async_error.dart ('k') | sdk/lib/async/future_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/future.dart
diff --git a/sdk/lib/async/future.dart b/sdk/lib/async/future.dart
index a36ffa1c5dc0cf9e53c40da598ab15119f3ca19b..efa4144186a14e2a2a9536ac506e2ee5494365f0 100644
--- a/sdk/lib/async/future.dart
+++ b/sdk/lib/async/future.dart
@@ -42,7 +42,7 @@ part of dart.async;
* this potential bug:
*
* var future = getFuture();
- * new Timer(5, (_) {
+ * new Timer(new Duration(milliseconds: 5), () {
* // The error-handler is only attached 5ms after the future has been
* // received. If the future fails in the mean-time it will forward the
* // error to the global error-handler, even though there is code (just
« no previous file with comments | « sdk/lib/async/async_error.dart ('k') | sdk/lib/async/future_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698