A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20150501/a3cc40c7/attachment.html below:

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, May 1, 2015 at 12:49 PM, Ron Adam <span dir="ltr"><<a href="mailto:ron3200@gmail.com" target="_blank">ron3200@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Another useful async function might be...<br>
<br>
  Â async def yielding():<br>
  Â  Â  Â pass<br>
<br>
In a routine is taking very long time, just inserting "await yielding()" in the long calculation would let other awaitables run.<br>
<br></blockquote><div>That's really up to the scheduler, and a function like this should be provided by the event loop or scheduler framework you're using.<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If the async loop only has one coroutine (awaitable) in it, then it will be just like calling a regular function.  No waiting would occur.<span class="HOEnZb"><font color="#888888"></font></span><br clear="all"></blockquote></div><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div></div>

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