Cancel
Cancels all callbacks from the dispatch source.
Declaration
virtual kern_return_t Cancel(IODispatchSourceCancelHandler handler);Parameters
- handler:
The handler block to call after any in-flight callbacks finish executing.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.
Discussion
After cancelling a dispatch source, you cannot reactivate it.