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

Unified Diff: tests/standalone/io/fuzz_support.dart

Issue 12224081: Change Future.delayed to take a Duration. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove const Duration(). 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: tests/standalone/io/fuzz_support.dart
diff --git a/tests/standalone/io/fuzz_support.dart b/tests/standalone/io/fuzz_support.dart
index 4c7cd1cd3990767b79e0bc106154bed7b3b24ae7..2e07a8cea211cb4290eaed951147e08d9e127c30 100644
--- a/tests/standalone/io/fuzz_support.dart
+++ b/tests/standalone/io/fuzz_support.dart
@@ -49,5 +49,7 @@ doItSync(Function f) {
// completion.
Future doItAsync(void f()) {
// Ignore value and errors.
- return new Future.delayed(0, f).catchError((_) {}).then((_) => true);
+ return new Future.delayed(const Duration(), f)
Lasse Reichstein Nielsen 2013/02/12 14:53:10 I don't like "new Duration()". It's not obvious it
floitsch 2013/02/13 19:27:30 Done.
+ .catchError((_) {})
+ .then((_) => true);
}
« sdk/lib/async/future.dart ('K') | « tests/lib/async/stream_from_iterable_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698