Tuesday, May 16, 2017 [Tweets] [Favorites]

All About Concurrency in Swift

Umberto Raimondi:

Swift 3 introduces a new function to perform assertions on the current execution context, that allows to verify if a closure is being executed on the expected queue. We can build predicates using the three enum cases of DispatchPredicate: .onQueue, to verify that we are on a specific queue, .notOnQueue, to verify the opposite and .onQueueAsBarrier to check if the current closure or work item are acting as a barrier on a queue.

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment