perf: adjust max_workers
This commit is contained in:
parent
ee06640362
commit
b74c25ebb6
@ -19,7 +19,7 @@ def wait_for(
|
||||
) -> _T:
|
||||
global _executor
|
||||
if _executor is None:
|
||||
_executor = ThreadPoolExecutor(thread_name_prefix='wait_for')
|
||||
_executor = ThreadPoolExecutor(max_workers=200, thread_name_prefix='wait_for')
|
||||
atexit.register(_executor.shutdown)
|
||||
|
||||
future = _executor.submit(func, *args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user