Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myQueue.sync { sleep(1); print("sync") }
- myQueue.async(flags: .wait) { sleep(1); print("wait") }
- // NOTE: This syntax doesn't compile, I'm not sure where the `.wait` flag moved to.
- // `.wait` Seems not to be in the DispatchWorkItemFlags enum.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement