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