-
-
Save yogithesymbian/66a6008ee96c5cded9544f82c7d293f7 to your computer and use it in GitHub Desktop.
Starting Code for Futures/Async/Await Demo
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
import 'dart:io'; | |
void main() { | |
performTasks(); | |
} | |
void performTasks() { | |
task1(); | |
task2(); | |
task3(); | |
} | |
void task1() { | |
String result = 'task 1 data'; | |
print('Task 1 complete'); | |
} | |
void task2() { | |
String result = 'task 2 data'; | |
print('Task 2 complete'); | |
} | |
void task3() { | |
String result = 'task 3 data'; | |
print('Task 3 complete'); | |
} |
Author
yogithesymbian
commented
Aug 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment