UNPKG

redis-smq-common

Version:

RedisSMQ Common Library provides many components that are mainly used by RedisSMQ and RedisSMQ Monitor.

18 lines 487 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.exec = exec; function exec(operation, callback) { try { operation((err, result) => { if (err) { return callback(err); } return callback(null, result); }); } catch (error) { const err = error instanceof Error ? error : new Error(String(error)); return callback(err); } } //# sourceMappingURL=exec.js.map