Last active
December 11, 2020 12:08
-
-
Save jaripekkala/75b335700a2a80868b82bc01b13e7d08 to your computer and use it in GitHub Desktop.
This file contains hidden or 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<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