I’d like to clarify my understanding. Consider this claim:
As implemented in Swift, async/await on its own would be useless without the ability to create tasks (structured, unstructured, or detached), i.e. to introduce concurrency. So long as there is only one task*, while a function can suspend, there's really no point because there would be no other work to execute while awaiting.
Is this correct?
* I'm assuming every program starts with a default task created by the runtime.