This allows to pass a coroutine to on_<signal> in addition to the current support for non-async callables.
We could prefer instead to avoid if isinstance() and provide a separate API (eg. aio_on_<signal>) for each signal ? Not sure it's worth it.
Without such a support in dbus_next itself, some use cases can be expressed by using asyncio.create_task() calls inside the non-coro callback, but that its shows limits.
This allows to pass a coroutine to
on_<signal>
in addition to the current support for non-async callables.We could prefer instead to avoid
if isinstance()
and provide a separate API (eg.aio_on_<signal>
) for each signal ? Not sure it's worth it.Without such a support in dbus_next itself, some use cases can be expressed by using
asyncio.create_task()
calls inside the non-coro callback, but that its shows limits.