kevin.cianfarini
02/20/2025, 3:02 PMgetOrThrow actually throw an exception here?
callbackFlow {
registerSomeCallback { value -> trySend(value).getOrThrow()
}.conflate()Joffrey
02/20/2025, 3:12 PMconflate() here it should also never throw, at least not due to full buffer. Regarding throwing because of the channel being closed, I'm not sure. Cancelling the flow shouldn't close the channel AFAIR but I would need to double checkkevin.cianfarini
02/20/2025, 3:13 PMeygraber
02/20/2025, 4:04 PMtrySend would throw an exception unexpectedly (or rather expectedly but unintuitively). That's why trySend was made, and returns a Resultkevin.cianfarini
02/20/2025, 5:50 PM