ios - How to execute closures serially in Swift -


i have closure executed asynchronously in for loop.

for in 0..<10 {     closure } 

how make loop wait closure executed before going next iteration?

you'd want use nsopertations or gcd. see dispatch or use promisekit if you're doing lot.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -