Merge pull request #118 from ochafik/patch-1

Make support/async.dart's waitFor function generic
diff --git a/lib/support/async.dart b/lib/support/async.dart
index d8f2314..e20a260 100644
--- a/lib/support/async.dart
+++ b/lib/support/async.dart
@@ -25,11 +25,11 @@
 
 const clock = const Clock();
 
-Future waitFor(condition(),
+Future/*<T>*/ waitFor/*<T>*/(/*=T*/ condition(),
         {matcher: null,
         Duration timeout: defaultTimeout,
         Duration interval: defaultInterval}) =>
-    clock.waitFor(condition,
+    clock.waitFor/*<T>*/(condition,
         matcher: matcher, timeout: timeout, interval: interval);
 
 class Clock {
@@ -50,7 +50,7 @@
   /// is returned. Otherwise, if [condition] throws, then that exception is
   /// rethrown. If [condition] doesn't throw then an [expect] exception is
   /// thrown.
-  Future waitFor(condition(),
+  Future/*<T>*/ waitFor/*<T>*/(/*=T*/ condition(),
       {matcher: null,
       Duration timeout: defaultTimeout,
       Duration interval: defaultInterval}) async {