51.17. slapi_task_set_cancel_fn()

Sets a callback to be used when a task is cancelled.
The destruction of the task itself is taken care of automatically, but a callback can be set to perform specific operations related to canceling a task. Any custom destructor function is called after the cancel function.
Syntax

void slapi_task_set_cancel_fn(Slapi_Task *task, TaskCallbackFn func)

Parameters

This function takes the following parameter:

task Points to the task operation which is being performed by the server.