Instance Method インスタンスメソッド

addBarrierBlock:

Invokes a block when the queue finishes all enqueued operations, and prevents subsequent operations from starting until the block has completed.

Declaration 宣言

- (void)addBarrierBlock:(void (^)(void))barrier;

Parameters パラメータ

barrier

The block to invoke after all currently enqueued operations have finished. Operations you add after the barrier block don’t start until the block has completed.

Discussion 議論

This method is similar to dispatch_barrier_async.

See Also 参照

Managing Operations in the Queue キューの中のオペレーションそれらを管理する