0
1

More than 1 year has passed since last update.

let dispatchGroup = DispatchGroup()

for work in works {
    dispatchGroup.enter()
    // Do your work
    dispatchGroup.leave()
}

dispatchGroup.notify(queue: .main){
    // ループ処理が全て完了したあと呼ばれる。
}

🐣


フリーランスエンジニアです。
お仕事のご相談こちらまで
rockyshikoku@gmail.com

Core MLやARKitを使ったアプリを作っています。
機械学習/AR関連の情報を発信しています。

Twitter
Medium

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