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

Justin Tullgren

06/29/2021, 7:22 PM
Hi, does anyone have an example of a channel/flow that acts like a blocking priority queue? Channels are fine for acting like a BlockingQueue in a non-blocking way but I need the offer to the queue to do the priority insert operation which channels dont have
👍 1
I don't want to use the BlockingPriorityQueue as it blocks the thread, I am looking for suspension
4 Views