Browse code

leave loky as deafult, change back in different PR

Bas Nijholt authored on 17/09/2020 23:34:38
Showing 1 changed files
... ...
@@ -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):