I noticed during testing that within a `callbackFl...
# flow
d
I noticed during testing that within a
callbackFlow { ... }
if we throw a plain
Exception
this halts the VM immediately, and is not caught as an in-
Flow
`.catch`able error, while throwing a
RuntimeException
is `.catch`able. While this isn't so surprising given the conventional relationship between
Exception
and
RuntimeException
, I can't find this documented in respect to Flows - should it be? Is it?
e
on playground, the ordering of send vs catch seems non-deterministic but catch always seems to work: https://pl.kotl.in/kihB7LrBS
d
Thanks @ephemient, nice use of playground too 👍
The difference must in our code, this helps.