lihai 8d6c751f49 feat: push | лет назад: 2 | |
---|---|---|
.. | ||
index.js | лет назад: 2 | |
license | лет назад: 2 | |
package.json | лет назад: 2 | |
readme.md | лет назад: 2 |
Promise#try()
ponyfill - Starts a promise chain
$ npm install --save p-try
const pTry = require('p-try');
pTry(() => {
return synchronousFunctionThatMightThrow();
}).then(value => {
console.log(value);
}).catch(error => {
console.error(error);
});
Promise#finally()
ponyfill - Invoked when the promise is settled regardless of outcomeMIT © Sindre Sorhus