[ Version ( since = "3.26" ) ]
public void schedule_custom_operation (Cancellable? use_cancellable, owned BookBackendCustomOpFunc func)
Schedules user function func to be run in a dedicated thread as a blocking operation.
The function adds its own reference to use_cancellable, if not null.
The error returned from func is propagated to client using
notify_error function. If it's not desired, then left the error unchanged and notify about errors manually.
| this |
an BookBackend |
| use_cancellable |
an optional Cancellable to use for |
| func |
a function to call in a dedicated thread |
| user_data |
user data being passed to |
| user_data_free |
optional destroy call back for |