Skip to content

Feature request: shouldRetry option should accept async functions #37

@BehzadV

Description

@BehzadV

Hello,
My feature request is that it would be better for the retryBackoff operator's shouldRetry option to also accept async functions (Promise).
Let's say that I am calling an API within my operators but every once in a while I get a token error, which is caught within the retryBackoff, visible within the shouldRetry option. I can use this opportunity to obtain a new token and then retry the call. However, I can't since shouldRetry does not accept an async function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions