Instance Property インスタンスプロパティ

cancellationHandler

The block to invoke when canceling progress. 進捗を取り消す時に発動するブロック。

Declaration 宣言

var cancellationHandler: (() -> Void)? { get set }

Discussion 議論

If the receiver is a suboperation of another progress object, the system invokes the cancellationHandler block when canceling the containing progress object.

Special Considerations 特別な注意事項

You’re responsible for canceling any work for the progress object.

You can invoke the cancellation handler on any queue. If you must do work on a specific queue, dispatch to that queue from within the cancellation handler block.

See Also 参照

Reporting Progress 進捗を報告する