Long running jobs could be also defined as functions. It needs to be analyzed how to plug in .log and .progress helpers in that case.
function isClass(func) {
return typeof func === 'function'
&& /^class\s/.test(Function.prototype.toString.call(func));
}