Message354352
Well, that's a common issue when using asyncio: you forgot await.
async def main(_loop):
while True:
with futures.ThreadPoolExecutor() as pool:
_loop.run_in_executor(pool, nop)
sys.stdout.write(f'\r{get_mem():0.3f}MB')
It should be: "await _loop.run_in_executor(pool, nop)" ;-)
Sadly, PYTHONASYNCIODEBUG=1 env var doesn't complain on this bug.
See: https://docs.python.org/dev/library/asyncio-dev.html#debug-mode |
|
Date |
User |
Action |
Args |
2019-10-10 09:52:38 | vstinner | set | recipients:
+ vstinner, asvetlov, yselivanov, Evgeny Nizhibitsky |
2019-10-10 09:52:38 | vstinner | set | messageid: <1570701158.11.0.627231041645.issue38430@roundup.psfhosted.org> |
2019-10-10 09:52:38 | vstinner | link | issue38430 messages |
2019-10-10 09:52:38 | vstinner | create | |
|