pakoito
05/01/2020, 9:08 AMsuspend fun bla(): Either<SomeError, Unit> =
IO.effectEither { someSuspendWithEither() }
.handleError(
{ it: Exception -> errorState(it) },
{ it: LeftSide -> defaultState() }
)
.continueOn(Main)
.effectMap { paintUISuspend(it) }
.suspended()