Javascript – Is there a meaningful difference between an async IIFE and a new Promise?
Consider the following assignments: const promise1 = (async () => { await someAsyncFunction(); })(); const promise2 = new Promise(async resolve => { await someAsyncFunction(); resolve(); }); Is there any meaningful difference between these two Promises (other than verbosity)?