index.js
function unqueue(done) {
    var storage = this;

    this.redis().lpop(this.queueKey(), function(err, key) {
        if (err) return done(err);

        storage.redis().get(key, function(err, task) {
            if (err) return done(err);
            if (!task) return done();

            storage.redis().del(key);
            done(null, JSON.parse(task), key);
        });
    });
}
function unqueue(done) {
    var storage = this;

    this.redis().lpop(this.queueKey(), function(err, key) {
        if (err) return done(err);

        storage.redis().get(key, function(err, task) {
            if (err) return done(err);
            if (!task) return done();

            storage.redis().del(key);
            done(null, JSON.parse(task), key);
        });
    });
}
function unqueue ( done ) { var storage = this ; this . redis ( ) . lpop ( this . queueKey ( ) , function ( err , key ) { if ( err ) return done ( err ) ; storage . redis ( ) . get ( key , function ( err , task ) { if ( err ) return done ( err ) ; if ( ! task ) return done ( ) ; storage . redis ( ) . del ( key ) ; done ( null , JSON . parse ( task ) , key ) ; } ) ; } ) ; }
Remove a task from the queue and pass it to the callback.
@param {function} done
Remove a task from the queue and pass it to the callback .