Open
Description
What's needed?
A more convenient way to allow application to automatically manage the dispatcher:
async with Dispatcher(...) as dispatcher:
...
Without having to manually start and stop the dispatcher, including when exceptions are raised.
Proposed solution
Inherit from BackgroundService
. This also guarantees a common interface.