UNPKG

492 BJavaScriptView Raw
1Object.defineProperty(exports, "__esModule", { value: true });
2/**
3 * Consumes the promise and logs the error when it rejects.
4 * @param promise A promise to forget.
5 */
6// eslint-disable-next-line @typescript-eslint/no-explicit-any
7function forget(promise) {
8 void promise.then(null, function (e) {
9 // TODO: Use a better logging mechanism
10 // eslint-disable-next-line no-console
11 console.error(e);
12 });
13}
14exports.forget = forget;
15//# sourceMappingURL=async.js.map
\No newline at end of file