Are there any ways to implement a concurrent queue...
# kotlin-native
i
Are there any ways to implement a concurrent queue in K/N?
It seems I have to rewrite my usecase with coroutines Channel
👌 1
r
You could try Stately. There's a
IsoArrayDeque
in
stately-iso-collections
which has queue-like operations based on the new
ArrayDeque
in stdlib. It works by confining all mutation to a dedicated thread. https://github.com/touchlab/Stately
❤️ 1
k
which is pretty similar to using a channel to confine to one thread
so it's roughly the same idea