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

Eval enhancements : Monix inspired RX style operators #986

Closed
johnmcclean opened this issue Nov 27, 2018 · 2 comments
Closed

Eval enhancements : Monix inspired RX style operators #986

johnmcclean opened this issue Nov 27, 2018 · 2 comments
Labels
Milestone

Comments

@johnmcclean
Copy link
Member

Monix's Coeval offers a number of very useful enhancements to Eval.
They are

  • doOnFinish : triggered when Eval execution completes
  • restartUntil : retry the Eval until a predicate holds
  • onErrorXXX : switch eval instances and otherwise handle errors

It would be useful to add error handling and completition events to Cyclops Eval.

  • onComplete : pass the completed value into the provided Consumer
  • onErrorSwitch : switch Eval is an exception occurs
  • onErrorRestart : restart the Evaluation if an error occurs up to a set number of retries

Potentially unsafe Operators to think about.

  • restartUntil : retry the Eval until a predicate holds, may make it too easy to create runtime infinite loops
@johnmcclean
Copy link
Member Author

Naming

  • onErrorSwitch is recoverWith
  • doOnFinish should be onComplete

@johnmcclean johnmcclean modified the milestones: 10.2.0, 10.3.0 Feb 12, 2019
@johnmcclean
Copy link
Member Author

Released in 10.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant