관리-도구
편집 파일: parallel.cpython-311.pyc
� �Re| � � � d Z ddgZddlmZ ddlmZ ddlmZ ddlmZ ddl mZmZm Z mZmZ ddlmZ eej ej f Z ed � � Z ed � � Z ddlZdZn # e$ r d ZY nw xY wdZedede e fd�� � Z ddeegef dee dede e fd�Z ddeegef dee dede e fd�Z ddeegef dee dede e fd�ZerexZZdS eZeZdS )ab Convenient parallelization of higher order functions. This module provides two helper functions, with appropriate fallbacks on Python 2 and on systems lacking support for synchronization mechanisms: - map_multiprocess - map_multithread These helpers work like Python 3's map, with two differences: - They don't guarantee the order of processing of the elements of the iterable. - The underlying process/thread pools chop the iterable into a number of chunks, so that for very long iterables using a large value for chunksize can make the job complete much faster than using the default value of 1. �map_multiprocess�map_multithread� )�contextmanager)�Pool��pool)�Callable�Iterable�Iterator�TypeVar�Union)�DEFAULT_POOLSIZE�S�TNFTi�� r �returnc # �� K � | V � | j � � | j � � | j � � dS # | j � � | j � � | j � � w xY w)z>Return a context manager making sure the pool closes properly.N)�close�join� terminater s ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/utils/parallel.py�closingr . sy � � � ��� � � � �� ������ ������������� �� ������ �������������s �7 �/A&� �func�iterable� chunksizec �"