Daniele Segato
12/11/2020, 11:10 AMcallbackFlow
does that mean that it may become binary incompatible in the future?
Thanks.Daniele Segato
12/11/2020, 11:32 AMtry {
sendBlocking(value)
} catch (e: Exception) {
// Handle exception from the channel: failure in flow or premature closing
}
but I find it a bit unhelpful.
when can sendBlocking fail?
what am I supposed to do there? (aka = how should I handle it?)Zach Klippenstein (he/him) [MOD]
12/11/2020, 4:02 PMawaitClose
, this is a race condition that might not happen very often.Daniele Segato
12/11/2020, 5:11 PMZach Klippenstein (he/him) [MOD]
12/11/2020, 5:35 PMoffer
throws when the channel is closed instead of returning false.Zach Klippenstein (he/him) [MOD]
12/11/2020, 5:35 PMObservable.asFlow()
, it catches this exception and even has a comment linking to the bug.louiscad
12/14/2020, 2:48 PMlouiscad
12/14/2020, 2:48 PM