Future.delayed no longer available, is this removed by accident or planned?
1
votes
2 Answers
2
votes
Don't worry. It's still there.
https://github.com/dart-lang/bleeding_edge/blob/master/dart/sdk/lib/async/future.dart#L224
1
votes
From the bug report, it seems most likely that you are calling Future.delayed as if it was a static function. It's a constructor, so it needs a new in front of the call: new Future.delayed(duration, computation).
Future.delayedshould still be there, so if you can't see it, there must be a problem somewhere. Try filing an issue on the dart bug tracker that states what you are doing (example code which is failing is great) and what is happening (how it crashes). - lrn