Skip to content

When using adaptive retry, the DefaultRateLimiter cannot be aborted by an abort signal when it's waiting #1758

@tbartley

Description

@tbartley

In @smith/util-retry at https://github.com/smithy-lang/smithy-typescript/blob/main/packages/util-retry/src/DefaultRateLimiter.ts#L79, I think this timeout should be able to be aborted using an abort signal but it currently cannot be done.

For example, if I'm using this within a lambda and getting close to the lambda timeout time, I'd like to abort the retry and have more control of error handling rather than just having the lambda fail with a "task timed out" error.

Even if i could construct may own DefaultRateLimiter overriding just this timeout capability that would be sufficient but all of the relevant methods are private.

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