Skip to content

Consider making rsloop.Loop weakrefable for compatibility. #45

Description

@tapetersen

anyio has a concept of RunVars which are context variables scoped to a particular AbstractEventLoop instance. These are implemented using a WeakKeyDictionary keyed on the loop instance. Currently this fails since rsloop.Loop doesn't supply the __weakref__ slot.

From what I understand this would be as simple as enabling the weakref option described here https://pyo3.rs/main/class#customizing-the-class

Wouldn't be hard to work around either but until now the other loop implementations have allowed it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions