Gocator API
|
kStatus GoControl_SetCancelHandler | ( | GoControl | control, |
kCallbackFx | function, | ||
kPointer | receiver | ||
) |
Sets an I/O cancellation query handler for this control object.
The I/O cancellation query handler will be polled periodically when I/O is blocked for a non-negligible amount of time. If the cancellation handler returns kERROR_ABORT, ongoing communication will be terminated.
control | Control object. |
function | I/O cancellation callback function (or kNULL to unregister). |
receiver | Receiver argument for callback. |