Files
sdk/tests/lib
lrn@google.com 11c5bd3d11 Add Future.of that calls a function and captures the result
This makes
  new Future.of(func)
equivalent to
  new Future.immediate(null).then((_) => func())
which should kill that idiom.

Review URL: https://codereview.chromium.org//12091105

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17979 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 13:15:42 +00:00
..