pgte/simple-redis-safe-work-queue — pull request #3 by lukebond (2014-07-29 16:41:46+00:00)
Title: Added .fetch() method that is useful with autoListen: false

Using the long-polling `.listen()` with `autoListen: false` isn't very useful because you are likely to be using it in a request-reply manner. I've added a `.fetch()` method which uses `rpoplpush` to return the next message or a `null`, and some associated tests.