caminho
Version:
Tool for creating efficient data pipelines in a JavaScript environment
15 lines • 570 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOnStepFinished = getOnStepFinished;
const stub = () => { };
function getOnStepFinished(name, onStepFinished) {
if (onStepFinished) {
return function internalOnStepFinished(valueBags, stepStartedAt, error) {
const now = Date.now();
const tookMs = now - stepStartedAt.getTime();
onStepFinished({ name, tookMs, valueBags, emitted: valueBags.length, error });
};
}
return stub;
}
//# sourceMappingURL=onStepFinished.js.map