commit | 4c5eba9bb78110ef0bd9a0113f9fea332a823376 | [log] [tgz] |
---|---|---|
author | floitsch@google.com <floitsch@google.com> | Wed Feb 13 19:31:22 2013 +0000 |
committer | floitsch@google.com <floitsch@google.com> | Wed Feb 13 19:31:22 2013 +0000 |
tree | 61881242341cae640747a6904f3a773b215e4480 | |
parent | 40966a9332dd76bbf32694148930f7339aca2c8f [diff] |
Change Future.delayed to take a Duration. Review URL: https://codereview.chromium.org//12224081 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18471 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/src/utils.dart b/lib/src/utils.dart index bcff589..83fe2b7 100644 --- a/lib/src/utils.dart +++ b/lib/src/utils.dart
@@ -113,4 +113,5 @@ } /// Returns a [Future] that asynchronously completes to `null`. -Future get async => new Future.delayed(0, () => null); +Future get async => new Future.delayed(const Duration(milliseconds: 0), + () => null);