Files
zhibo/node_modules/p-try/index.js
T
xiaoyu 27f83c9959 init
2023-05-22 14:20:32 +08:00

10 lines
211 B
JavaScript

'use strict';
const pTry = (fn, ...arguments_) => new Promise(resolve => {
resolve(fn(...arguments_));
});
module.exports = pTry;
// TODO: remove this in the next major version
module.exports.default = pTry;