3 ms·
You can't await inside of a function returning impl Future<Int>. (You can inside an async block inside one, but there you go with language-level support again.)
by steveklabnik 5y ago
You can't await inside of a function returning impl Future<Int>. (You can inside an async block inside one, but there you go with language-level support again.)
You need the collaboration with the compiler to make it all work well. And that means keywords and language-level infrastructure. We tried no sugar, and it was rough: http://aturon.github.io/tech/2018/04/24/async-borrowing/ http://aturon.github.io/tech/2018/04/24/async-borrowing/
(And a proc macro didn't work out either)