[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:
Alex Wu
2020-06-22 18:26:45 -07:00
committed by GitHub
parent b88059326d
commit 40c15b1ba0
3 changed files with 56 additions and 25 deletions
+1 -1
View File
@@ -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()