Skip to content

Custom routine for last attempt (giving up) #32

@pinx

Description

@pinx

We want to log retries and 'giving up' with its own message.
I now implemented this with a condition in the Retry:
if (attempt < MaxAttempts) {normal behavior} else {custom log message}
with MaxAttempts one higher than the actual number of attempts.

I'm not sure what the most elegant solution would be. Maybe a fluent method like GiveUpWith() after Retry?

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