Skip to content

Consider using ContextVar instead of threading.local #9

@eliasdorneles

Description

@eliasdorneles

A ContextVar behaves the same as threading.local in multi-threading environments, but it will also work for coroutines as well.

Consider using that to make your library compatible with async contexts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions