Why should anyone use the synchronous API?

DANIELLLANO at terra.es DANIELLLANO at terra.es
Wed Mar 1 02:50:59 PST 2006

David Zeuthen wrote:
> The glib bindings currently just sets the timeout of method calls to -1.
> This is pretty bad so I've written a patch that fixes it. Unfortunately
> it breaks some API but we'd better fix this. For details see
>  http://bugzilla.gnome.org/show_bug.cgi?id=332888

Why do dbus needs this kind of problems?
I mean, Why dbus needs a synchronous API?
What's the use case of the synchronous API?

I think the asynchronous API should be the default one and only use the
synchronous API by legacy applications that don't work well with the glib
main loop.

Shouldn't everyone be encouraged to only use the synchronous API (at
least in new applications)?
I think that the tutorial
should only explain asynchronous calls.

Prueba el Nuevo Correo Terra; Seguro, Rápido, Fiable.

More information about the dbus mailing list