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

Unified Diff: tests/lib/async/future_value_chain4_test.dart

Issue 91213002: Add Future.timeout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use Timer.isActive instead of boolean flag. Created 7 years, 1 month 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/lib/async/future_value_chain4_test.dart
diff --git a/tests/lib/async/future_value_chain4_test.dart b/tests/lib/async/future_value_chain4_test.dart
index 8e640b56ea7a534b1434171b4faf68b3c29ab4b4..926e1b4bd24d0f9864cbb8a60810885e0c6a5f98 100644
--- a/tests/lib/async/future_value_chain4_test.dart
+++ b/tests/lib/async/future_value_chain4_test.dart
@@ -13,6 +13,7 @@ class MyFuture implements Future {
catchError(_, {test}) => null;
whenComplete(_) => null;
asStream() => null;
+ timeout(Duration timeLimit, [void onTimeout()]) => null;
}
main() {

Powered by Google App Engine
This is Rietveld 408576698