Created
March 25, 2021 06:32
-
-
Save isqad/9c178e437bacff5f508a0ffaf4204a99 to your computer and use it in GitHub Desktop.
Dart magic
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
void main() { | |
print('1. Start main'); | |
Future.delayed( | |
const Duration(seconds: 1), | |
() => print('3. => Timeout Future #1'), | |
); | |
Future.delayed( | |
const Duration(seconds: 2), | |
() => print('4. => Timeout Future #2'), | |
); | |
print('2. End main'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment