A final proposal for await syntax

No, await is only an operator that applies in an expression. There have been mentions of an await pattern related to @withoutboats posts on for loops, but there have been no serious proposals of adding them yet

See this later comment. (One of the ideas that I think I've seen is that if for loops can be generalised to streaming iterators with GATs then we can have a trivial transform of Stream<Item = T> -> StreamingIterator<Item: Future<Output = T>> and use that directly in a for loop).

3 Likes