Skip to content

Instantly share code, notes, and snippets.

@FlutterZeroGit
Last active August 18, 2022 06:48
Show Gist options
  • Save FlutterZeroGit/bddd5a3a9fd18c6004d893b73edbf019 to your computer and use it in GitHub Desktop.
Save FlutterZeroGit/bddd5a3a9fd18c6004d893b73edbf019 to your computer and use it in GitHub Desktop.
同期処理
main() {
task1();
task2();
task3();
}
void task1() {
print('タスク1完了');
}
void task2() {
sleep(Duration(seconds: 5));
print('タスク2完了');
}
void task3() {
print('タスク3完了');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment