Skip to content

Commit

Permalink
allow custom multithread name
Browse files Browse the repository at this point in the history
  • Loading branch information
nggit committed Jul 19, 2024
1 parent 492fd14 commit 96df260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asyncutor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def shutdown(self):


class MultiThreadExecutor(ThreadExecutor):
def __init__(self, size=10, loop=None):
super().__init__(loop=loop, name='MultiThreadExecutor')
def __init__(self, size=10, loop=None, name='MultiThreadExecutor'):
super().__init__(loop=loop, name=name)

self.size = size
self._threads = {}
Expand Down

0 comments on commit 96df260

Please sign in to comment.