I am developing an app that requires a completion block and a "barrier" functionality.
As far as I know, NSOperation API has a completionBlock property and GCD API has the dispatch_barrier_(a)sync function to handle the barrier needs.
What should I do in order to accomplish both of the needs? Thanks!