a
    Æ¹Dfê  ã                   @   sZ   d Z d	dd„ZddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ dS )
zC
pools: pools of pathos workers, providing map and pipe constructs
Nc                 C   sp   t tttf}ttf}| du r2|D ]}|j ¡  q n:| |v rF| j ¡  n&| |v r\d}t|ƒ‚nd|  }t	|ƒ‚dS )z,destroy all cached pools (of the given type)Nz"use the close() method to shutdownz#'%s' is not one of the pathos.pools)
ÚProcessPoolÚ
ThreadPoolÚParallelPoolÚ
SerialPoolÚ_ProcessPoolÚ_ThreadPoolZ	__state__ÚclearÚNotImplementedErrorÚ	TypeError)ÚtypeÚpoolsZ_poolsÚpoolÚmsg© r   úY/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/pathos/pools.pyÚ_clear   s    
r   é    )r   )r   )r   )r   )N)Ú__doc__r   Zpathos.helpersr   r   r   r   Zpathos.multiprocessingZpathos.threadingZpathos.parallelr   Zpathos.serialr   r   r   r   r   Ú<module>   s   
