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 宣言

func addBarrierBlock(_ barrier: @escaping () -> Void)

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 キューの中のオペレーションそれらを管理する