mirror of
https://github.com/wassname/ray.git
synced 2026-07-07 12:18:02 +08:00
[ParallelIterator] Fix for_each concurrent test cases/bugs (#8964)
* Everything works * Update python/ray/util/iter.py Co-authored-by: Amog Kamsetty <amogkam@users.noreply.github.com> * . * . * removed print statements Co-authored-by: Amog Kamsetty <amogkam@users.noreply.github.com>
This commit is contained in:
@@ -248,7 +248,7 @@ class Semaphore:
|
||||
self._sema = asyncio.Semaphore(value=value)
|
||||
|
||||
async def acquire(self):
|
||||
self._sema.acquire()
|
||||
await self._sema.acquire()
|
||||
|
||||
async def release(self):
|
||||
self._sema.release()
|
||||
|
||||
Reference in New Issue
Block a user