dispatch_block_testcancel
Tests whether the given dispatch block has been canceled.
Declaration
extern intptr_t dispatch_block_testcancel(dispatch_block_t block);Parameters
- block:
The dispatch block to test cancel.
The result of passing
NULLor 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.