util.markPromiseAsHandled(promise)


将一个承诺标记为已处理,以便未处理的拒绝被忽略,并且不会被报告到 'unhandledrejection' 事件。

🌐 Marks a promise as handled so that unhandled rejections are ignored and are not reported to the 'unhandledrejection' event.