Skip to content

Supporting per-use() forced requests? #14

@headlessme

Description

@headlessme

We have some endpoints that are rate limited but we always want to the requests to succeed even if that sends the token balance negative. Currently we'd need to instantiate two RollingLimit classes with different options and manage which instance was applied to the different endpoints.
Would you be open to adding a new parameter to the use() signature to specify the value for force? e.g. use(id, cost, force)

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