Re: A new Python library for DBus: dbus-next

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Organization Geek Central
Message-ID <[email protected]>
On Tue, 7 May 2019 15:00:44 -0400, Tony Crisci wrote:

> * Support asyncio and the GLib main loop

Seems like you have to explicitly import different versions of your
classes to work with the GLib event loop versus “vanilla” asyncio. And
what about other event loops? Really you should just work with the
standard asyncio API, and leave it to other packages to provide
alternative event-loop wrappers that can slide into the asyncio API.

That is the approach I took with DBussy, and you can see a small
example of it in action here
<https://github.com/ldo/glibcoro_examples/blob/master/dbus_signal_listener>.
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.