0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Dartの非同期関数ってどんな感じなん?

Posted at

Dart思い出しシリーズ

void greet(String name) {
print('Hello, $name');
}

Future asyncFunction() async {
await Future.delayed(Duration(seconds: 1));
print('Done');
}
void main(){
greet('Sapphire'); //Hello, Sapphire
asyncFunction();//実行して1秒後にDone
}

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?