You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Such an instance would be useful for compatibility with existing TF code that uses throw/catch outside of Sync#delay/Async#async where their behavior is undefined and left to the implementation, the default ZIO implementation of cats-effect typeclasses chooses to capture such exceptions as defects, which makes them unrecoverable with cats-effect's own methods.
This should be a separate instance, for example accessible at import zio.interop.catz.autocatch._
Care must be taken to suspend all places where potential defects may appear - that is at least all by-name parameters, ideally all super-class methods should be overriden to ensure that nothing is missed.
Such an instance would be useful for compatibility with existing TF code that uses
throw
/catch
outside ofSync#delay
/Async#async
where their behavior is undefined and left to the implementation, the default ZIO implementation ofcats-effect
typeclasses chooses to capture such exceptions as defects, which makes them unrecoverable with cats-effect's own methods.This should be a separate instance, for example accessible at
import zio.interop.catz.autocatch._
Care must be taken to suspend all places where potential defects may appear - that is at least all by-name parameters, ideally all super-class methods should be overriden to ensure that nothing is missed.
/cc @a14e
The text was updated successfully, but these errors were encountered: