Await expressions (Posting On Python-List Prohibited)
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Jan 26 18:59:39 EST 2024
On 27/01/24 10:46 am, Stefan Ram wrote:
> But your explanation seems to have no mention of the "something" /
> "the awaitable object" part following the preposition "on". Shouldn't
> this awaitable object play a rĂ´le in the explanation of what happens?
If it helps at all, you can think of an async function as being
very similar to a generator, and "await" as being very similar to
"yield from". In the current implementation they're almost exactly
the same thing underneath.
--
Greg
More information about the Python-list
mailing list