mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 15:37:44 +00:00
fix: insert await asyncio.sleep(0) to yield control in loop (#1186)
This commit is contained in:
@@ -304,6 +304,7 @@ class LoopBase:
|
||||
await self._run_step(li)
|
||||
self.queue.put_nowait(li) # the loop `li` has been kicked off, waiting for workers to pick it up
|
||||
self.loop_idx += 1
|
||||
await asyncio.sleep(0)
|
||||
|
||||
async def execute_loop(self) -> None:
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user