STINNER Victor <vstin...@python.org> added the comment:
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 ---------- nosy: +vstinner resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38430> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com