A utility function for dealing with async operations where you need
to wait for a #GSource to trigger. Attaches @source to @task's
#GMainContext with @task's priority[io-priority], and sets @source's
callback to @callback, with @task as the callback's user_data.
It will set the @source’s name to the task’s name (as set with
g_task_set_name()), if one has been set.
This takes a reference on @task until @source is destroyed.
A utility function for dealing with async operations where you need to wait for a #GSource to trigger. Attaches @source to @task's #GMainContext with @task's priority[io-priority], and sets @source's callback to @callback, with @task as the callback's user_data.
It will set the @source’s name to the task’s name (as set with g_task_set_name()), if one has been set.
This takes a reference on @task until @source is destroyed.