[Python-Dev] async/await behavior on multiple calls
Yury Selivanov
yselivanov.ml at gmail.com
Wed Dec 16 09:53:56 EST 2015
More information about the Python-Dev mailing list
Wed Dec 16 09:53:56 EST 2015
- Previous message (by thread): [Python-Dev] async/await behavior on multiple calls
- Next message (by thread): [Python-Dev] async/await behavior on multiple calls
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2015-12-16 12:55 AM, Kevin Conway wrote: > I think the list is trying to tell you that awaiting a coro multiple > times is simply not a valid case in Python because they are > exhaustible resources. In asyncio, they are primarily a helpful > mechanism for shipping promises to the Task wrapper. In virtually all > cases the pattern is: > > > await some_async_def() > > and almost never: > > > coro = some_async_def() > > await coro > That's exactly right, thank you, Kevin. Yury
- Previous message (by thread): [Python-Dev] async/await behavior on multiple calls
- Next message (by thread): [Python-Dev] async/await behavior on multiple calls
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list