__all__ = ['robot_multirequests']
-import concurrent.futures
-
-from Robots.concurrent_futures import concurrent_futures
+from Robots.concurrent_futures import cf_multiprocess
from robots import import_robot, set_params, robot_params
-class robot_multirequests(concurrent_futures):
- def __init__(self, *args, **kw):
- self.concurrent_class = concurrent.futures.ProcessPoolExecutor
- concurrent_futures.__init__(self, *args, **kw)
-
+class robot_multirequests(cf_multiprocess):
def check_bkmk_task(self):
return check_bookmark_subproc
def stop(self):
super(concurrent_futures, self).stop()
self.executor.shutdown(wait=True)
+
+
+class cf_multiprocess(concurrent_futures):
+ def __init__(self, *args, **kw):
+ self.concurrent_class = concurrent.futures.ProcessPoolExecutor
+ concurrent_futures.__init__(self, *args, **kw)