Last active
November 28, 2021 22:44
-
-
Save sergeykondr/09406a6959252d07bbe51f404fcecf1f to your computer and use it in GitHub Desktop.
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() async{ | |
methodA(); | |
methodB(); //намеренно вызвано без await | |
methodA(); | |
} | |
methodA(){ | |
print('A'); | |
} | |
methodB() async { | |
print('B start'); | |
await Future((){ | |
print('Future B'); | |
}); | |
print('B end'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment