[issue29303] asyncio.Lock.acquire() does not always yield
Guido van Rossum
report at bugs.python.org
Tue Jan 17 18:59:48 EST 2017
Guido van Rossum added the comment:
No, `yield from` (or, in Python 3.5+, `await`) is not meant to bound back to the scheduler. If the target is a coroutine that itself doesn't yield, it is a *feature* that the scheduler is bypassed.
If you want to force a trip through the scheduler, use `asyncio.sleep(0)`.
----------
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29303>
_______________________________________
More information about the Python-bugs-list
mailing list