Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. myQueue.sync { sleep(1); print("sync") }
  2.  
  3. myQueue.async(flags: .wait) { sleep(1); print("wait") }
  4. // NOTE: This syntax doesn't compile, I'm not sure where the `.wait` flag moved to.
  5. // `.wait` Seems not to be in the DispatchWorkItemFlags enum.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement