This repository has been archived on 2020-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
|
'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;
|