Created
May 15, 2020 20:36
-
-
Save yjbanov/9894dcaed2a707bd88ca1fbae0c77671 to your computer and use it in GitHub Desktop.
async puzzler
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
Future<void> foo() => Future<void>.delayed( | |
Duration.zero, | |
() { print('foo'); } | |
); | |
void bar() async { | |
await foo(); | |
print('bar'); | |
} | |
void main() { | |
bar(); | |
print('baz'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment