[Bug 47322] [next] GCancellables for all async calls

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 20 14:38:43 CET 2012


https://bugs.freedesktop.org/show_bug.cgi?id=47322

--- Comment #6 from Nicolas Dufresne <nicolas.dufresne at collabora.co.uk> 2012-03-20 06:38:43 PDT ---
I it might not be all method, but at least all the DBus call, especially that
it's free.

While cancelling does not prevent you from being callback, it help you make the
difference between a normal error and a abnormal error. We can greatly improve
traces with that, and avoid all the obscure NULL check in every callback.

Also, in some cases, async call will end much later without cancellable. This
can make debugging of end-of-life races much harder. Cancellable is simply to
help you make sure your now unwanted call ends in a finit amount of time. An
example where I want Cancellable is in telepathy Logger, some searches can take
more then 30 seconds to finish, for sure it's going to be cancelled on best
effort, but most likely within less then 1 seconds. This is a big deal of disk
resource that you save for the next search.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list