Contents

dispatch_block_cancel

Cancels the specified dispatch block asynchronously.

Declaration

extern void dispatch_block_cancel(dispatch_block_t block);

Parameters

Discussion

Cancellation causes any future execution of the dispatch block to return immediately, but does not affect any execution of the block object that is already in progress.

Release of any resources associated with the block object is delayed until execution of the block object is next attempted (or any execution already in progress completes).

See Also

Canceling a Work Item