Daniel
02/12/2021, 12:49 PMmutableStateFlow.value += 1
? Is it
var cached = mutableStateFlow.value
while (!mutableStateFlow.compareAndSet(cached, cached + 1)) {
cached = mutableStateFlow.value
}
wasyl
02/12/2021, 12:50 PMMutex
and guard updates to the flow with itDaniel
02/12/2021, 12:51 PMwasyl
02/12/2021, 1:04 PMDaniel
02/12/2021, 1:05 PM