%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
a
�_g"d � @ s� d Z ddlmZmZmZ ddlmZmZmZ ddl
mZmZ ddl
mZ ddlmZ ddlmZ ddlmZmZ dd lmZ dd
lmZ ddlmZ g d�ZG d
d� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� de�Z"dS )a2
Managing greenlets in a group.
The :class:`Group` class in this module abstracts a group of running
greenlets. When a greenlet dies, it's automatically removed from the
group. All running greenlets in a group can be waited on with
:meth:`Group.join`, or all running greenlets can be killed with
:meth:`Group.kill`.
The :class:`Pool` class, which is a subclass of :class:`Group`,
provides a way to limit concurrency: its :meth:`spawn <Pool.spawn>`
method blocks if the number of greenlets in the pool has already
reached the limit, until there is a free slot.
� )�print_function�absolute_import�division)�GreenletExit�
getcurrent�kill)�joinall�Greenlet)�Full)�Timeout)�Event)� Semaphore�DummySemaphore)�izip)�IMap)�
IMapUnordered)�Group�Pool�PoolFullc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zddd�Zd d
d�Z d!dd�Z
dd� Zdd� Zd"dd�Z
d#dd�Zdd� Zdd� Zdd� Zd
S )$�GroupMappingMixin� c O s
t � �dS )a�
A function that runs *func* with *args* and *kwargs*, potentially
asynchronously. Return a value with a ``get`` method that blocks
until the results of func are available, and a ``rawlink`` method
that calls a callback when the results are available.
If this object has an upper bound on how many asyncronously executing
tasks can exist, this method may block until a slot becomes available.
N��NotImplementedError)�self�func�args�kwargsr r �8/vddos/python/lib/python3.9/site-packages/gevent/pool.py�spawn- s
zGroupMappingMixin.spawnc C s
t � �dS )zc
should the function passed to apply be called immediately,
synchronously?
Nr �r r r r �_apply_immediately9 s z$GroupMappingMixin._apply_immediatelyc C s
t � �dS )z�
Should apply_async directly call Greenlet.spawn(), bypassing
`spawn`?
Return true when self.spawn would block.
Nr r r r r �_apply_async_use_greenlet@ s z+GroupMappingMixin._apply_async_use_greenletc C s
t � �dS )zk
Run the given callback function, possibly
asynchronously, possibly synchronously.
Nr �r �callback�resultr r r �_apply_async_cb_spawnI s z'GroupMappingMixin._apply_async_cb_spawnNc C s&