Closed fwbrasil closed 4 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.
kyo-core
kyo-prelude
Result
Either
Try
I've also changed Abort.run to return Result and catch unexpected exceptions to Result.panic.
Abort.run
Result.panic
I'm working on porting
kyo-core
tokyo-prelude
and part of the change introduces typed error handling for fibers. This PR makesResult
a low-allocation mix ofEither
andTry
to use it in fiber completions.