Gocator API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Macros Modules Pages

kStatus GoReceiver_SetCancelHandler | ( | GoReceiver | receiver,
|  | kCallbackFx | function,
|  | kPointer | context
| ) |  |

Sets an I/O cancellation query handler for this receiver 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.

Version
  Introduced in firmware 4.0.10.27

Parameters

  receiver | Receiver object.
  function | I/O cancellation callback function (or kNULL to unregister).
  context | Context argument for callback (function receiver).

Returns
  Operation status.