Skip to content

Instantly share code, notes, and snippets.

@FlutterZeroGit
Last active August 18, 2022 06:53
Show Gist options
  • Save FlutterZeroGit/fd243c4604224b185f7dd94f8f5fe0b5 to your computer and use it in GitHub Desktop.
Save FlutterZeroGit/fd243c4604224b185f7dd94f8f5fe0b5 to your computer and use it in GitHub Desktop.
非同期処理
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