Function

dispatch_block_testcancel

Tests whether the given dispatch block has been canceled.

Declaration

long dispatch_block_testcancel(dispatch_block_t block);

Parameters

block

The dispatch block to test cancel.

The result of passing NULL or a block object not returned by the dispatch_block_create or dispatch_block_create_with_qos_class function is undefined.

Return Value

Returns a non-zero value if the dispatch block is canceled, otherwise zero.

See Also

Canceling a Work Item

dispatch_block_cancel

Cancels the specified dispatch block asynchronously.