Skip to content

(Immutable)MutableProxy should support __aenter__ protocol #6689

Description

@masenf

Describe the Enhancement you want
If all i'm holding if an MutableProxy object, I should be able to directly async with some_obj to take the lock, refresh the object, and make it modifiable. This allows helper methods to work with background tasks/non-mutable state without also passing along a reference to the state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAnything you want improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions