Which one would you prefer?
# announcements
e
Which one would you prefer?
2️⃣ 4
c
Why are your errors `Throwable`s and not `Exception`s? Also, why are they singletons?
e
They were wrapped with a
sealed class
but then I switched to throwables forgot to turn them to classes. About exception vs throwable part idk.
Sealed class approach is neater though.
Btw I could also return a
RecieveChannnel<T>
instead of taking a handler func is there any reason to prefer one to another?
c
It's an experimental API, but probably a good substitute for your current callback-based approach.
No need to reinvent the wheel