Method: Bluth.shift

Defined in:
lib/bluth.rb

.shiftObject

Workers use a blocking pop and will wait for up to Bluth.queuetimeout (seconds) before returnning nil. Note that the queues are still processed in order. If all queues are empty, the first one to return a value is use. See:

code.google.com/p/redis/wiki/BlpopCommand



162
163
164
# File 'lib/bluth.rb', line 162

def Bluth.shift
  blocking_queue_handler :blpop
end