A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-December/142469.html below:

[Python-Dev] async/await behavior on multiple calls

[Python-Dev] async/await behavior on multiple calls [Python-Dev] async/await behavior on multiple callsYury Selivanov yselivanov.ml at gmail.com
Wed Dec 16 09:53:56 EST 2015
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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4