Guest User

Untitled

a guest
Oct 20th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. let rndStrings = ["a", "b", "c"]
  2. var rndInts = [Int]()
  3. rndStrings.forEach { rndString in
  4. someAsyncMethod { intResult in
  5. rndInts.append(intResult)
  6. }
  7. }
  8. // i want to wait until rndInts has all 3 values
Add Comment
Please, Sign In to add comment