DEP0174:在返回 Promise 的函数上调用 promisify
\DEP0174: calling promisify on a function that returns a Promise
版本历史
| 版本 | 变更 |
|---|---|
| v20.8.0 | 仅文档弃用。 |
类型:仅文档
\Type: Documentation-only
在返回 Promise 的函数上调用 util.promisify 将忽略所述 promise 的结果,这可能导致未处理的 promise 拒绝。
\Calling util.promisify on a function that returns a Promise will ignore
the result of said promise, which can lead to unhandled promise rejections.