From 920109ba2733a055995a3c76547bbb0e6d96a4c7 Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 24 Feb 2025 20:47:46 -0400 Subject: [PATCH] async_yield() tweak --- src/dexorder/util/async_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dexorder/util/async_util.py b/src/dexorder/util/async_util.py index 3ec4824..f945d78 100644 --- a/src/dexorder/util/async_util.py +++ b/src/dexorder/util/async_util.py @@ -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')