lib/client.js
function wrapWorkAndCallback(work, callback) {
  return function(err) {
    work.stop(err);
    callback.apply(this, arguments);
  };
}
function wrapWorkAndCallback(work, callback) {
  return function(err) {
    work.stop(err);
    callback.apply(this, arguments);
  };
}
function wrapWorkAndCallback ( work , callback ) { return function ( err ) { work . stop ( err ) ; callback . apply ( this , arguments ) ; } ; }
Returns back a function that wraps the original callback.
@param {Work} work object that needs to be stopped.
@param {Function} callback invoked in lock acquistion.
@return {Function} wrapper function that encompasses original callback.
Returns back a function that wraps the original callback .