Skip to content

Instantly share code, notes, and snippets.

@yjbanov
Created May 15, 2020 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yjbanov/9894dcaed2a707bd88ca1fbae0c77671 to your computer and use it in GitHub Desktop.
Save yjbanov/9894dcaed2a707bd88ca1fbae0c77671 to your computer and use it in GitHub Desktop.
async puzzler
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