mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Similar to `try`, await expressions have no specific semantics of their own except to indicate that the subexpression contains calls to `async` functions, which are suspension points. In this design, there can be multiple such calls within the subexpression of a given `await`. Note that we currently use the keyword `__await` because `await` in this position introduces grammatical ambiguities. We'll wait until later to sort out the specific grammar we want and evaluate source-compatibility tradeoffs. It's possible that this kind of prefix operator isn't what we want anyway.
7.7 KiB
7.7 KiB