Chromium Code Reviews| Index: pkg/barback/lib/src/utils.dart |
| diff --git a/pkg/barback/lib/src/utils.dart b/pkg/barback/lib/src/utils.dart |
| index 9da4b0e71d74b0de28c6b678526195dfd72c5747..2118e95cba6fc53c84433bda9800de0962c14f8a 100644 |
| --- a/pkg/barback/lib/src/utils.dart |
| +++ b/pkg/barback/lib/src/utils.dart |
| @@ -101,3 +101,6 @@ Future pumpEventQueue([int times=20]) { |
| return new Future.delayed(Duration.ZERO, () => pumpEventQueue(times - 1)); |
| } |
| +/// Like [new Future], but avoids around issue 11911 by using [new Future.value] |
|
Bob Nystrom
2013/07/19 19:54:20
"avoids around" -> "avoids"
nweiz
2013/07/19 20:15:18
Done.
|
| +/// under the covers. |
| +Future newFuture(callback()) => new Future.value().then((_) => callback()); |