spotify / mobius

A functional reactive framework for managing state evolution and side-effects.
https://spotify.github.io/mobius/
Apache License 2.0
1.23k stars 97 forks source link

Add support for configurable error handling #118

Closed pettermahlen closed 4 years ago

pettermahlen commented 4 years ago

For exceptions that happen on WorkRunner threads, we log an error rather than let them be forwarded to the threads' UncaughtExceptionHandler. This PR adds the ability to configure that behaviour, so that it's possible to do something else - like crash the application, for instance.

pettermahlen commented 4 years ago

I feel like this is a workable approach, but I'm not sure that it's any better than encouraging users to set the UncaughtExceptionHandler for the threads in the WorkRunners.