Skip to content

Instantly share code, notes, and snippets.

@sergeykondr
Last active November 28, 2021 22:44
Show Gist options
  • Save sergeykondr/09406a6959252d07bbe51f404fcecf1f to your computer and use it in GitHub Desktop.
Save sergeykondr/09406a6959252d07bbe51f404fcecf1f to your computer and use it in GitHub Desktop.
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