async_yield() tweak
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user