altdesktop / python-dbus-next

🚌 The next great DBus library for Python with asyncio support
https://python-dbus-next.readthedocs.io/en/latest/
MIT License
187 stars 58 forks source link

Make aio MessageBus and glib MessageBus context managers. #116

Closed garyvdm closed 1 month ago

garyvdm commented 2 years ago

This allows one to manage the connect and disconnect with using [async] with statements.

Update docs to demonstrate this usage.

garyvdm commented 2 years ago

~Please note this is based on #118 . Please review/merge that first.~

garyvdm commented 1 year ago

I rebased this branch on master and resolved conflicts.