Skip to content

Cancelled get calls forces the pool object to be detached #16

@Sh4d1

Description

@Sh4d1

Hey! I've been testing bounded fastpool for a wrapper above sqlx (based off your example), and it's pretty neat!

However, it seems that when the get call gets cancelled, depending when, a connection in an UnreadyObject could be dropped when it doesn't need to be. It could be interesting (imho) to add a way to return these to the pool instead of dropping, in my case, the connection. I guess it would only take adding another state for the object just for this? Wdyt?

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