Join Slack
Powered by
I’m using a channel in a viewmodel as a sort of Be...
# coroutines
v
voben
12/18/2019, 11:47 PM
I’m using a channel in a viewmodel as a sort of BehaviorSubject. Do I need to explicitly close the channel when the viewmodel is cleared?
l
Luke Sleeman
12/19/2019, 4:42 AM
Is this
ConflatedBroadcastChannel
?
r
rkeazor
12/19/2019, 12:55 PM
If it's a child of the viewModelScope. Once you cancel the parent , all the children get canceled with it I believe
v
voben
12/19/2019, 3:11 PM
@Luke Sleeman
yes it is
4
Views
Open in Slack
Previous
Next