Last active
August 18, 2022 06:53
-
-
Save FlutterZeroGit/fd243c4604224b185f7dd94f8f5fe0b5 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
main() { | |
task1(); | |
task2(); | |
task3(); | |
} | |
void task1() { | |
print('タスク1完了'); | |
} | |
void task2() { | |
Future.delayed(Duration(seconds: 3), () => print('タスク2完了')); | |
} | |
void task3() { | |
print('タスク3完了'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment