pgte/simple-redis-safe-work-queue — pull request #2 by lukebond (2014-07-29 15:23:38+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.