A utility function for dealing with async operations where you need
to wait for a
GSource to trigger. Attaches
task‘s [priority][io-priority], and sets
task as the callback’s
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
source is destroyed.
Available since: 2.36
This method is not directly available to language bindings.