What's wrong with awaiting a promise chain?
问题 I’m working on an Angular 6 application and I’ve been told the following is an anti-pattern: await someFunction().then(result => { console.log(result); }); I realize that it is pointless to await a promise chain. If someFunction() returns a promise, you don’t need a promise chain if you’re awaiting it. You can do this: const result = await someFunction(); console.log(result); But I’m being told awaiting a promise chain can cause bugs, or that it will break things in my code. If the first code