How do people handle shutdown of applications while async/await stuff is still executing? I do a lot of desktop app and need to stop executing when it closes. With the async stuff it's really hard to tell what's still in the queue to be executed and should be waited for.
Is the whole pattern more for server stuff where you can assume there will be no shutdowns?