Skip to content

bot: threading.Event instead of Boolean for _connection_registered #2391

@dgw

Description

@dgw

Threading.Event could be used for _connection_registered instead of a boolean

This is a neat idea and worth looking into, largely because of the .wait() method that would make available.

Originally posted by @dgw in #2375 (comment)

I want to come back to this idea in the future, maybe for 9.0. (It's not the sort of thing I'd be comfortable changing in a minor release like 8.1.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions