Skip to content

Make awatch's stop_event accept AbstractEvent #357

@CNSeniorious000

Description

@CNSeniorious000

After reviewing the codebase, I found that stop_event is always polled, never awaited. Its type can therefore be safely broaden from AnyEvent (anyio.Event | trio.Event | asyncio.Event) to AbstractEvent, which will make awatch more consistent with watch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions