Skip to content

Commit

Permalink
allow custom multithread name (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: nggit <12218311+nggit@users.noreply.github.com>
  • Loading branch information
nggit and nggit authored Jul 19, 2024
1 parent 492fd14 commit d99159d
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 d99159d

Please sign in to comment.