Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/joblib/externals/loky/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

10 statements  

1r"""The :mod:`loky` module manages a pool of worker that can be re-used across time. 

2It provides a robust and dynamic implementation os the 

3:class:`ProcessPoolExecutor` and a function :func:`get_reusable_executor` which 

4hide the pool management under the hood. 

5""" 

6 

7from concurrent.futures import ( 

8 ALL_COMPLETED, 

9 FIRST_COMPLETED, 

10 FIRST_EXCEPTION, 

11 CancelledError, 

12 Executor, 

13 TimeoutError, 

14 as_completed, 

15 wait, 

16) 

17 

18from ._base import Future 

19from .backend.context import cpu_count 

20from .backend.reduction import set_loky_pickler 

21from .reusable_executor import get_reusable_executor 

22from .cloudpickle_wrapper import wrap_non_picklable_objects 

23from .process_executor import BrokenProcessPool, ProcessPoolExecutor 

24 

25 

26__all__ = [ 

27 "get_reusable_executor", 

28 "cpu_count", 

29 "wait", 

30 "as_completed", 

31 "Future", 

32 "Executor", 

33 "ProcessPoolExecutor", 

34 "BrokenProcessPool", 

35 "CancelledError", 

36 "TimeoutError", 

37 "FIRST_COMPLETED", 

38 "FIRST_EXCEPTION", 

39 "ALL_COMPLETED", 

40 "wrap_non_picklable_objects", 

41 "set_loky_pickler", 

42] 

43 

44 

45__version__ = "3.5.5"