getkyo / kyo

Toolkit for Scala Development
https://getkyo.io
Apache License 2.0
481 stars 38 forks source link

prelude: typed failures in Result #502

Closed fwbrasil closed 4 days ago

fwbrasil commented 6 days ago

I'm working on porting kyo-core to kyo-prelude and part of the change introduces typed error handling for fibers. This PR makes Result a low-allocation mix of Either and Try to use it in fiber completions.

fwbrasil commented 6 days ago

I've also changed Abort.run to return Result and catch unexpected exceptions to Result.panic.