UNPKG

kued

Version:

Extensions for the Kue library (Daemonization, Checkpointing, etc.)

13 lines (12 loc) 203 B
'use strict'; module.exports.wrapAsync = function(next, evaluatee){ return function(){ try { evaluatee.apply(null, arguments); next(); } catch (e){ next(e); } }; };