source:
frontend/node_modules/p-try/index.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 211 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | 'use strict'; |
| 2 | ||
| 3 | const pTry = (fn, ...arguments_) => new Promise(resolve => { | |
| 4 | resolve(fn(...arguments_)); | |
| 5 | }); | |
| 6 | ||
| 7 | module.exports = pTry; | |
| 8 | // TODO: remove this in the next major version | |
| 9 | module.exports.default = pTry; |
Note:
See TracBrowser
for help on using the repository browser.
