Skip to content

Instantly share code, notes, and snippets.

@jaripekkala
Last active December 11, 2020 12:08
Show Gist options
  • Save jaripekkala/75b335700a2a80868b82bc01b13e7d08 to your computer and use it in GitHub Desktop.
Save jaripekkala/75b335700a2a80868b82bc01b13e7d08 to your computer and use it in GitHub Desktop.
Future<int> foo() => Future.value(1);
Future<int> bar() async => Future.value(1);
Future<int> baz() async => await Future.value(1);
Future<int> qux() async => await Future.value(Future.value(1));
Future<int> quux() async => 1;
Future<int> quuz() async => await 1;
main() async {
print(await foo());
print(await bar());
print(await baz());
print(await qux());
print(await quux());
print(await quuz());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment