Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.148.217.66
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
p-try /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
82
B
-rw-r--r--
2016-09-28 10:10
license
1.09
KB
-rw-r--r--
2014-04-06 15:43
package.json
1.51
KB
-rw-r--r--
2021-02-04 21:24
readme.md
894
B
-rw-r--r--
2016-10-20 09:57
Save
Rename
# p-try [](https://travis-ci.org/sindresorhus/p-try) > [`Promise#try()`](https://github.com/ljharb/proposal-promise-try) [ponyfill](https://ponyfill.com) - Starts a promise chain [How is it useful?](http://cryto.net/~joepie91/blog/2016/05/11/what-is-promise-try-and-why-does-it-matter/) ## Install ``` $ npm install --save p-try ``` ## Usage ```js const pTry = require('p-try'); pTry(() => { return synchronousFunctionThatMightThrow(); }).then(value => { console.log(value); }).catch(error => { console.error(error); }); ``` ## Related - [p-finally](https://github.com/sindresorhus/p-finally) - `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome - [More…](https://github.com/sindresorhus/promise-fun) ## License MIT © [Sindre Sorhus](https://sindresorhus.com)