Method
DexSchedulerspawn_coroutine
unstable since: 1.2
Declaration [src]
DexFuture*
dex_scheduler_spawn_coroutine (
DexScheduler* scheduler,
DexCoroutineFunc func,
gpointer user_data,
GDestroyNotify user_data_destroy
)
Description [src]
Request scheduler to spawn a DexCoroutine and execute
func with user data.
If the function returns NULL while suspended, it should have set an awaited
future in its context using one of the DEX_COROUTINE_SUSPEND_* helpers.
Available since: 1.2
Parameters
scheduler-
Type:
DexSchedulerA
DexScheduler.The argument can be NULL. func-
Type:
DexCoroutineFuncCoroutine entrypoint.
user_data-
Type:
gpointerUser data passed to the coroutine entrypoint.
The argument can be NULL.The data is owned by the caller of the method. user_data_destroy-
Type:
GDestroyNotifyDestroy notify for
user_data.