Skip to content

impl Drop for Session #143

@jdeinum

Description

@jdeinum

Hi all! Does anyone know if Drop is purposefully not implemented for Session? If not, would people be open to having it implemented? It would be really helpful for RAII patterns and any sort of event loops.

For implementation, we could maybe do something similar to what sqlx does and just spawn the disconnect function as a separate top level task that can be optionally be awaited if needed.

I am happy to open a PR if folks are good with it. Thanks :)

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