0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

非同期関数でセットで出てくるFutureについて軽く書き残します。

非同期関数の一つです。もう一個はasync・awaitを使用する方法パターンもあります。

非同期処理の実行完了後の未来において、実行結果を格納するための箱のようなものがFuture。asyncはawaiteで終わるまで待つがFuutreはThenで終わった後の処理を書くイメージ

Future<int>とするとreturnでintのデータを返すことになる。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?