UNPKG

redis-smq-common

Version:

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

15 lines 396 B
export 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