How can channel input be handled in a prioritized fashion? Is there anything equivalent
to Scala’s “reactWithin(0) { ... case TIMEOUT }” construct?
How can channel input be handled in a prioritized fashion? Is there anything equivalent
Share
I wrote a Subscription class that delivers prioritized messages on a set interval. It’s not an ideal general case way to consume prioritized messages, but I’ll post it for posterity. I think a custom RequestReplyChannel would be a better option for certain other cases. Implementation of PriorityQueue is left as an exercise to the reader.