<https://github.com/Kotlin/kotlinx.coroutines/issu...
# android
s
k
sounds like you should use a semaphore or mutex but also it's pretty unusual to need to do that w/ firestore: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.sync/-semaphore/
s
@kenkyee also does with context causes any overhead? And can it happen that in my suspend fun line 1 was executing at thread 1 and line 5 executes at another thread
k
coroutines can resume in different threads.
s
Doesn't that make things more complicated?
k
it's the way it works blob shrug
s
My reaction is your dp