franztesca
12/13/2022, 10:03 AMsynchronized or a Mutex. Both work. Which one should I use? On one side, synchronized can block the thread of a coroutine but it's much faster, on the other side Mutex never blocks the thread but it's slower. Is there a preferred option, in general? ThanksChris Fillmore
12/14/2022, 11:20 AMMutableStateFlow, which uses synchronized under the hood.