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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com