Skip to content

Instantly share code, notes, and snippets.

@enyo
Created Nov 15, 2018
Embed
What would you like to do?
import 'dart:async';
Future foo() async {
print('foo() before delay');
await Future.delayed(Duration(milliseconds: 100));
print('foo() after delay');
}
void main() async {
print('main() before foo()');
await foo();
print('main() after foo()');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment