Thanks for the response, <@U0B8UEMV1>. Is there a ...
# arrow
a
Thanks for the response, @pakoito. Is there a blog post, tutorial, doc I could see how
Either.catch
looks like in this context? I understand
Try { }
is essentially the same, but it still reads better than
try/catch
.
p
suspend fun catch(f: suspend () -> A) = try { f().right() } catch (t: Throwable) { t.left() }
Either.catch { myFun() }