toEither

open suspend fun toEither(): Either<R, A>

fold the Cont into an Either. Where the shifted value R is mapped to Either.Left, and result value A is mapped to Either.Right.

Sources

common source
Link copied to clipboard