antonicg
04/22/2020, 4:00 PMcatch
function from the Either
is a suspend function? Is it possible to catch an exception without using an IO
?simon.vergauwen
04/22/2020, 6:03 PMsuspend
models a Continuation
which results in Throwable
or A
.
Similar to how IO
results in Throwable
or A
.simon.vergauwen
04/22/2020, 6:03 PMIO
is equivalent to fun <A> IO(f: suspend () -> A): IO<A>
.simon.vergauwen
04/22/2020, 6:05 PMIO
and flatten it. Or any other suspend
implementationantonicg
04/22/2020, 7:07 PMpakoito
04/22/2020, 8:00 PM