Result Eager Effect Scope
value class ResultEagerEffectScope(cont: EagerEffectScope<Throwable>) : EagerEffectScope<Throwable>
Content copied to clipboard
Constructors
Functions
Link copied to clipboard
Folds Either into EagerEffect, by returning B or a shift with R.
Folds Validated into EagerEffect, by returning B or a shift with R.
Runs the EagerEffect to finish, returning B or shift in case of R.
Folds Option into EagerEffect, by returning B or a transforming None into R and shifting the result.
open suspend fun <B> Result<B>.bind(transform: (Throwable) -> Throwable): B
Content copied to clipboard
Folds Result into EagerEffect, by returning B or a transforming Throwable into R and shifting the result.