Closed zcc19960910 closed 5 months ago
then it is ok!!!
Python official example: https://docs.python.org/zh-cn/3/library/asyncio-sync.html?highlight=semaphore#asyncio.Semaphore
sem = asyncio.Semaphore()
await sem.acquire() try:
finally: sem.release()
@BobTheBuidler is this fixed via #95 ?
Yep, fixed in #95! Closing this issue
Because the code is deadlocked!
multicall.py and call.py all use
async with _get_semaphore(), so you must remove call.py
then it is ok!!!
Python official example: https://docs.python.org/zh-cn/3/library/asyncio-sync.html?highlight=semaphore#asyncio.Semaphore
sem = asyncio.Semaphore()
await sem.acquire() try:
work with shared resource
finally: sem.release()