when i was using threads used to work on concurrentlinkedqueue and others is there any equivalent for it in kotlin when using coroutines?
k
Kroppeb
03/22/2020, 9:45 AM
I think that would be a
Channel
Kroppeb
03/22/2020, 9:50 AM
val unlimitedChannel = Channel<String>(UNLIMITED)
z
Zach Klippenstein (he/him) [MOD]
03/22/2020, 4:36 PM
You can still use Java's lock-free concurrent data structures with coroutines, the same principles apply, and there are no kotlin-specific implementations of those in the standard library at this time.
Channel
is effectively a blocking queue, and can be used instead of