Skip to content

new feature: ConcurrentLimitLayer should accept a Semaphore #6591

@bonsairobo

Description

@bonsairobo

Feature Description

Add a method to ConcurrentLimitLayer to provide an Arc<Semaphore>.

Problem and Solution

Some applications may have their own semaphores used for limiting concurrency. For example, when limiting a process's open file handles. ConcurrentLimitLayer is already using Arc<Semaphore> internally, so this only needs to be exposed.

Additional Context

No response

Are you willing to contribute to the development of this feature?

  • Yes, I am willing to contribute to the development of this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestreleases-note/featThe PR implements a new feature or has a title that begins with "feat"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions