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
Post a Comment