arrow-streams / arrow.streams.internal / FreeC / Result


interface Result<out R>

Emulated sealed trait. Never extend this interface! **Working with FreeC.Result must be done using Result.fold **


asExitCase open fun asExitCase(): ExitCase<Throwable>
asFreeC open fun <F> asFreeC(): FreeC<F, R>

Companion Object Properties

unit val unit: Result<Unit>

Companion Object Functions

fromEither fun <A> fromEither(either: Either<Throwable, A>): Result<A>
interrupted fun <A> interrupted(scopeId: Any?, failure: Option<Throwable>): Result<A>
just fun <A> just(a: A): Result<A>
raiseError fun <A> raiseError(error: Throwable): Result<A>

Do you like Arrow?

Arrow Org