Created
November 15, 2018 11:55
-
-
Save enyo/3fed1e72fb94be7bd771072b31d690b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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