diff --git a/lib/utils/promises.js b/lib/utils/promises.js --- a/lib/utils/promises.js +++ b/lib/utils/promises.js @@ -29,12 +29,14 @@ return input.filter((value, index) => filterResults[index]); } -async function ignorePromiseRejections(promise: Promise) { - try { - await promise; - } catch (error) { - console.warn(error); - } +function ignorePromiseRejections(promise: Promise) { + void (async () => { + try { + await promise; + } catch (error) { + console.warn(error); + } + })(); } export { promiseAll, promiseFilter, ignorePromiseRejections };