Instance Property

pausingHandler

The block to invoke when progress is paused.

Declaration

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

Discussion

If the receiver is a child of another progress object, the pausingHandler block will be invoked when the parent is paused.

Special Considerations

You are responsible for pausing any work associated with the progress object.

The pausing handler may be invoked on any queue. If you must do work on a specific queue, you should dispatch to that queue from within the pausing handler block.

See Also

Controlling Progress

var isCancellable: Bool

Indicates whether the receiver is tracking work that can be cancelled.

var isCancelled: Bool

Indicates whether the receiver is tracking work that has been cancelled.

func cancel()

Cancel progress tracking.

var cancellationHandler: (() -> Void)?

The block to invoke when progress is cancelled.

var isPausable: Bool

Indicates whether the receiver is tracking work that can be paused.

var isPaused: Bool

Indicates whether the receiver is tracking work that has been paused.

func pause()

Pause progress tracking.

func resume()

Resume progress tracking.

var resumingHandler: (() -> Void)?

The block to invoke when progress is resumed.