https://kotlinlang.org logo
#coroutines
Title
# coroutines
d

dave08

05/08/2018, 11:37 AM
No, I mean coroutines Channel
Copy code
val channel = Channel<ProcessingRequest>()
val processingPool = newThreadPool...
launch(processingPool) {  for (request in channel) doProcessing(it) }

for ...
   for ...
        channel.sendBlocking(ProcessingRequest(...))
👍 1