arrow-fx-coroutines / arrow.fx.coroutines.stream / Pull / Result

Result

sealed class Result<out R> : Pull<Nothing, R>, ViewL<Nothing, R>

Types

Fail data class Fail : Result<Nothing>
Interrupted Signals that Pull evaluation was interrupted.data class Interrupted<X> : Result<Nothing>
Pure data class Pure<R> : Result<R>

Functions

asExitCase fun asExitCase(): ExitCase
map fun <B> map(f: (R) -> B): Result<B>
mapOutput open fun <P> mapOutput(f: (Nothing) -> P): Pull<P, R>

Companion Object Properties

unit val unit: Result<Unit>

Companion Object Functions

fromEither fun <R> fromEither(either: Either<Throwable, R>): Result<R>

Do you like Arrow?

Arrow Org
<