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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software