> In Kotlin with suspend `try/catch` can safely...
# arrow
s
In Kotlin with suspend
try/catch
can safely be used to recover from exceptions. source: https://github.com/arrow-kt/arrow-fx/pull/169
does that mean that:
Copy code
val result: Int = try {
  evalOn(BlockingI)) { mySuspendFun() }
} catch(t: Throwable) {
  5
}
would work?
p
It doesn’t catch async exceptions, just concurrent ones.
s
Yes, that works @stojan
✔️ 1