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

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

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 years, 9 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/stream_transformers.dart ('k') | sdk/lib/async/zone.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/timer.dart
diff --git a/sdk/lib/async/timer.dart b/sdk/lib/async/timer.dart
index 72206ff2eaf97ca33482bae8bb1cdc966a501595..97f68983e31bb2bdcfbfa9afe50cb647f5b18464 100644
--- a/sdk/lib/async/timer.dart
+++ b/sdk/lib/async/timer.dart
@@ -36,7 +36,6 @@ part of dart.async;
* See [Stopwatch] for measuring elapsed time.
*/
abstract class Timer {
-
/**
* Creates a new timer.
*
@@ -69,8 +68,7 @@ abstract class Timer {
* when the previous callback started, or when the previous callback was
* scheduled for - even if the actual callback was delayed.
*/
- factory Timer.periodic(Duration duration,
- void callback(Timer timer)) {
+ factory Timer.periodic(Duration duration, void callback(Timer timer)) {
if (Zone.current == Zone.ROOT) {
// No need to bind the callback. We know that the root's timer will
// be invoked in the root zone.
@@ -78,8 +76,8 @@ abstract class Timer {
}
// TODO(floitsch): the return type should be 'void', and the type
// should be inferred.
- var boundCallback = Zone.current.bindUnaryCallback<dynamic, Timer>(
- callback, runGuarded: true);
+ var boundCallback = Zone.current
+ .bindUnaryCallback<dynamic, Timer>(callback, runGuarded: true);
return Zone.current.createPeriodicTimer(duration, boundCallback);
}
@@ -108,7 +106,6 @@ abstract class Timer {
bool get isActive;
external static Timer _createTimer(Duration duration, void callback());
- external static Timer _createPeriodicTimer(Duration duration,
- void callback(Timer timer));
+ external static Timer _createPeriodicTimer(
+ Duration duration, void callback(Timer timer));
}
-
« no previous file with comments | « sdk/lib/async/stream_transformers.dart ('k') | sdk/lib/async/zone.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698