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

Add a new lazy container which can automatically retry if its initializer fails #27

Open
KyNorthstar opened this issue Dec 23, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@KyNorthstar
Copy link
Collaborator

If its initializer throws an error or returns nil, it should retry initialization next time. This will be useful for allowing operations to gracefully fail and trying them again once appropriate.

This could also contain a minimum retry timeout, so that expensive initializers aren't rapidly called over and over if we know they failed for something that is more likely to work later (for instance, if an initializer fails because a network call failed, or it needs another program which is still starting, etc.)

@KyNorthstar KyNorthstar added the enhancement New feature or request label Dec 23, 2020
@KyNorthstar KyNorthstar added this to the 4.x.x milestone Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant