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

Adding support for delay parameter in retry operator #71

Closed
starlight173 opened this issue Jan 18, 2020 · 1 comment
Closed

Adding support for delay parameter in retry operator #71

starlight173 opened this issue Jan 18, 2020 · 1 comment
Assignees
Milestone

Comments

@starlight173
Copy link

I think it would be helpful if this feature is available.

@malcommac
Copy link
Owner

retry operator now supports delay parameter starting from 2.0.4.
This is an example:

func retry(_ attempts: Int = 3, delay: TimeInterval = 0,
               _ condition: @escaping ((Int, Error) throws -> Bool) = { _,_ in true }) { ... }

By default value is set to 0 (which means no delay) but you can set your own value expressed in seconds.

@malcommac malcommac changed the title Feature request: retry with delay Adding support for delay parameter in retry operator Sep 15, 2020
@malcommac malcommac added this to the 2.0.4 milestone Sep 15, 2020
@malcommac malcommac self-assigned this Sep 15, 2020
malcommac added a commit that referenced this issue Sep 15, 2020
new #71: Added support for delay parameter in retry operation
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