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

Unified Diff: tool/input_sdk/lib/async/timer.dart

Issue 1953153002: Update dart:async to match the Dart repo. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Remove unneeded calls. Created 4 years, 7 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 | « tool/input_sdk/lib/async/stream_transformers.dart ('k') | tool/input_sdk/lib/async/zone.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/async/timer.dart
diff --git a/tool/input_sdk/lib/async/timer.dart b/tool/input_sdk/lib/async/timer.dart
index fafe65228db5060519b0498e950edbd4347e6fe2..1bbb65b93307a81837011043cd1f72c014010bdd 100644
--- a/tool/input_sdk/lib/async/timer.dart
+++ b/tool/input_sdk/lib/async/timer.dart
@@ -76,8 +76,11 @@ abstract class Timer {
// be invoked in the root zone.
return Zone.current.createPeriodicTimer(duration, callback);
}
- return Zone.current.createPeriodicTimer(
- duration, Zone.current.bindUnaryCallback(callback, runGuarded: true));
+ // TODO(floitsch): the return type should be 'void', and the type
+ // should be inferred.
+ var boundCallback = Zone.current.bindUnaryCallback/*<dynamic, Timer>*/(
+ callback, runGuarded: true);
+ return Zone.current.createPeriodicTimer(duration, boundCallback);
}
/**
« no previous file with comments | « tool/input_sdk/lib/async/stream_transformers.dart ('k') | tool/input_sdk/lib/async/zone.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698