async_yield() tweak

This commit is contained in:
tim
2025-02-24 20:47:46 -04:00
parent 67ab504a40
commit 920109ba27

View File

@@ -4,8 +4,8 @@ from typing import Union, Awaitable, TypeVar
async def async_yield():
# a value of exactly 0 doesn't seem to work as well, so we set 1 nanosecond
await asyncio.sleep(1e-9)
# a value of exactly 0 doesn't seem to work as well, so we use 1 microsecond
await asyncio.sleep(1e-6)
Args = TypeVar('Args')