it would be nice to be able to read from the "union" of 2 or more queues. something like get jobs1|jobs2
trivial to make this work for the no-timeout (instant) case. for the timeout case (get jobs1|jobs2/t=1000), we'll need to track the open reads, and when an item comes in on one of the queues, cancel the read on the other queues. could be tricky.
(via stephan and jonathan)
it would be nice to be able to read from the "union" of 2 or more queues. something like
get jobs1|jobs2
trivial to make this work for the no-timeout (instant) case. for the timeout case (
get jobs1|jobs2/t=1000
), we'll need to track the open reads, and when an item comes in on one of the queues, cancel the read on the other queues. could be tricky.