gtask: Add a GTask:completed property
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Thu, 21 Aug 2014 18:04:04 +0000 (19:04 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 10 Mar 2015 08:37:45 +0000 (08:37 +0000)
commit4f1f68e6bebc0694208bc7bf43816bde58229fd6
tree9267e594e36d1da5f1e246203ac9c850e503443e
parente83f9e52542af1b3986999638e4aec33587c19b8
gtask: Add a GTask:completed property

This can be used to query whether the task has completed, in the sense
that it has had a result set on it, and has already – or will soon –
invoke its callback function.

Notifications for this property are emitted immediately after the task’s
main callback, in the same main context as that callback. This allows
for multiple bits of code to listen for completion of the GTask, which
opens the door for blocking on cancellation of the GTask and improved
handling of ‘pending’ behaviour.

https://bugzilla.gnome.org/show_bug.cgi?id=743636
docs/reference/gio/gio-sections.txt
gio/gtask.c
gio/gtask.h
gio/tests/task.c