Tim Malseed
07/06/2020, 11:50 PMZach Klippenstein (he/him) [MOD]
07/07/2020, 1:27 AMTim Malseed
07/07/2020, 1:28 AMZach Klippenstein (he/him) [MOD]
07/07/2020, 1:31 AMTim Malseed
07/07/2020, 1:39 AMstateIn
for StateFlow is released yet? I remember reading some github comments where it was proposed, and then I decided to basically emulate the same behavior.
Because I’m relatively new to coroutines, it’s hard for me to understand whether that part is relevant or not. The stateIn
equivalent here is just ‘feeding’ the StateFlow
values - I feel like this`JobCancellationException` issue should occur independently of whatever is passing values to the StateFlow
. In other words, the downstream consumer’s scope is cancelled, passing a JobCancellationException
up the hierarchy, to the StateFlow
. The coroutine feeding values to the StateFlow
is secondary, or possibly outside the scope of this issue. (Maybe?)stateIn
Zach Klippenstein (he/him) [MOD]
07/07/2020, 7:14 AMTim Malseed
07/07/2020, 7:18 AMbezrukov
07/07/2020, 7:29 AMTim Malseed
07/07/2020, 7:31 AM//delay(3000)
//job2.cancelAndJoin()
It looks like you can reproduce the issuebezrukov
07/07/2020, 8:04 AMTim Malseed
07/07/2020, 8:04 AM