Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different Atoms for Retry #21

Closed
rawkode opened this issue Jun 15, 2018 · 2 comments
Closed

Different Atoms for Retry #21

rawkode opened this issue Jun 15, 2018 · 2 comments
Assignees

Comments

@rawkode
Copy link
Contributor

rawkode commented Jun 15, 2018

Hi,

I'm working on some middleware system and I'd like to use this library for retries.

The middleware already has an API that expects {:ok, _}, {:skip, _}, or {:error, _}

I'd like to use retry, but configure it only to retry on {:retry, _}

Having looked at the code, I don't believe this is possible. Would you accept a PR that made this configurable?

@safwank
Copy link
Owner

safwank commented Jun 17, 2018

@rawkode Sure. You can pass the list of atoms as an option.

@safwank safwank assigned safwank and rawkode and unassigned safwank Jun 17, 2018
@safwank
Copy link
Owner

safwank commented Jun 19, 2018

This has been included in v0.9. Thanks for the PR @rawkode.

@safwank safwank closed this as completed Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants