Skip to content

Add a Pool.dispose function #824

@shonfeder

Description

@shonfeder

If we create a pool using Pool.create, there is not currently a way to dispose of the resources in the pool if we are done with it. But even if we have expensive resources and want to reuse them for some time, we may still want to dispose of the resources within the lifetime of a switch. For this reason, I think it would be helpful to have a function like Pool.dispose that would call dispose on all the resources in the pool, and pop them all from the pool queue.

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