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 support for multiple error handling strategies #6

Open
yakovmanshin opened this issue Sep 26, 2020 · 0 comments
Open

Add support for multiple error handling strategies #6

yakovmanshin opened this issue Sep 26, 2020 · 0 comments
Labels
new New feature or request research The topic needs research and clarification

Comments

@yakovmanshin
Copy link
Owner

yakovmanshin commented Sep 26, 2020

In addition to replacing an unsuccessfully resolved value with defaultValue, FeatureFlag should be able to pursue additional strategies, such as:

  • calling a custom closure (something like (FeatureFlag, Error) -> Value);
  • returning wrappedValue as optional;
  • re-throwing the resolver error;
  • etc.
@yakovmanshin yakovmanshin added the new New feature or request label Sep 26, 2020
@yakovmanshin yakovmanshin added the research The topic needs research and clarification label Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new New feature or request research The topic needs research and clarification
Projects
None yet
Development

No branches or pull requests

1 participant