schedule_custom_operation


Description:

[ Version ( since = "3.26" ) ]
public void schedule_custom_operation (Cancellable? use_cancellable, owned CalBackendCustomOpFunc 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.

Parameters:

this

an CalBackend

use_cancellable

an optional Cancellable to use for func

func

a function to call in a dedicated thread

user_data

user data being passed to func

user_data_free

optional destroy call back for user_data