@gourmet/promise-protect
Protects a function from exceptions and wraps the return value with a promise
Why?
This is syntactically explicit and slightly more efficient than Promise.resolve().then(...)
.
Protects a function from exceptions and wraps the return value with a promise
This is syntactically explicit and slightly more efficient than Promise.resolve().then(...)
.
npm i @gourmet/promise-protect
0
0.3.3
MIT
2.08 kB
5