Skip to content

Commit

Permalink
pool completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberbolt committed Apr 30, 2023
1 parent 9e43f72 commit d0da1ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiopools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
class AsyncPool:

def __init__(self, maxio: int = 20):
'''
maxio: The maximum number of coroutines allowed by the system.
'''
self.semaphore = asyncio.Semaphore(maxio)
self.tasks = []

Expand Down

0 comments on commit d0da1ec

Please sign in to comment.