[Python-Dev] PEP 492 quibble and request
Guido van Rossum
guido at python.org
Fri May 1 21:59:41 CEST 2015
On Fri, May 1, 2015 at 12:49 PM, Ron Adam <ron3200 at gmail.com> wrote:
> Another useful async function might be...
> async def yielding():
> In a routine is taking very long time, just inserting "await yielding()"
> in the long calculation would let other awaitables run.
> 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.
> 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.
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev