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

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

Issue 12342014: Remove deprecated ms arguments for Timer and Future. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: sdk/lib/async/future.dart
diff --git a/sdk/lib/async/future.dart b/sdk/lib/async/future.dart
index 820ba0087d17181fbc5b5d92e6bfdad8b51a4906..5fdf82b25e7f707e737af4197a1f18341d9c17b4 100644
--- a/sdk/lib/async/future.dart
+++ b/sdk/lib/async/future.dart
@@ -149,11 +149,8 @@ abstract class Future<T> {
* error.
*
* See [Completer]s, for futures with values that are computed asynchronously.
- *
- * *Deprecation note*: this method initially took an [int] as argument (the
- * milliseconds to wait). It is now a [Duration].
*/
- factory Future.delayed(var duration, [T computation()]) {
+ factory Future.delayed(Duration duration, [T computation()]) {
// TODO(floitsch): no need to allocate a ThenFuture when the computation is
// null.
if (computation == null) computation = (() => null);

Powered by Google App Engine
This is Rietveld 408576698