Skip to content

Dispatcher should be stoppable and a async context manager #93

Open
@llucax

Description

@llucax

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:dispatcherAffects the high-level dispatcher interfacetype:enhancementNew feature or enhancement visitble to users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions