... | ... |
@@ -46,7 +46,9 @@ with suppress(ModuleNotFoundError): |
46 | 46 |
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) |
47 | 47 |
|
48 | 48 |
|
49 |
-_default_executor = concurrent.ProcessPoolExecutor |
|
49 |
+_default_executor = ( |
|
50 |
+ loky.get_reusable_executor if with_loky else concurrent.ProcessPoolExecutor |
|
51 |
+) |
|
50 | 52 |
|
51 | 53 |
|
52 | 54 |
class BaseRunner(metaclass=abc.ABCMeta): |