lib/processor.js
function (context, next) {
        if (context.options.force || !context.cached.template) {
            this._tasksQueue.push(Processor._models.task(
                context.cached._id, context.pathname, context.cached, !context.options.wait ? null :
                    function (err, cached) {
                        if (err) return next(err);
                        context.cached = cached;
                        next(null);
                    }
            ));
            if (!context.options.wait)
                next(null);
        }
        else next(null);
    }
function (context, next) {
        if (context.options.force || !context.cached.template) {
            this._tasksQueue.push(Processor._models.task(
                context.cached._id, context.pathname, context.cached, !context.options.wait ? null :
                    function (err, cached) {
                        if (err) return next(err);
                        context.cached = cached;
                        next(null);
                    }
            ));
            if (!context.options.wait)
                next(null);
        }
        else next(null);
    }
function ( context , next ) { if ( context . options . force || ! context . cached . template ) { this . _tasksQueue . push ( Processor . _models . task ( context . cached . _id , context . pathname , context . cached , ! context . options . wait ? null : function ( err , cached ) { if ( err ) return next ( err ) ; context . cached = cached ; next ( null ) ; } ) ) ; if ( ! context . options . wait ) next ( null ) ; } else next ( null ) ; }
Pushes a task in the queue, so it can be processed as soon as possible.
@param {object} context
@param {function} next
Pushes a task in the queue so it can be processed as soon as possible .