Maksimka101 / isolate-bloc

A Flutter package that helps implement the BLoC pattern when blocs run in their own Isolate.
MIT License
21 stars 9 forks source link

Don't kill isolate on unhandled exception. #1

Closed Maksimka101 closed 3 years ago

Maksimka101 commented 4 years ago

When some unhandled exception happens isolate disposes. To slove this issue you should run new isolate with "errorsAreFatal: false" parameter.

Also would be a good idea to catch exceptions in Initializer function.