§
    Ètºf  ã                   óv   — d Z ddlmZ ddlmZ  G d„ de¦  «        Z G d„ de¦  «        Z G d„ d	e¦  «        Zd
S )z 
Interfaces related to threads.
é    )ÚCallable)Ú	Interfacec                   ó   — e Zd ZdZdS )ÚAlreadyQuitzJ
    This worker worker is dead and cannot execute more instructions.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úY/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/_threads/_ithreads.pyr   r      s   € € € € € ðð ð ð r   r   c                   ó8   — e Zd ZdZdeg df         ddfd„Zd„ ZdS )ÚIWorkerzs
    A worker that can perform some work concurrently.

    All methods on this interface must be thread-safe.
    ÚtaskNÚreturnc                 ó   — dS )a;  
        Perform the given task.

        As an interface, this method makes no specific claims about concurrent
        execution.  An L{IWorker}'s C{do} implementation may defer execution
        for later on the same thread, immediately on a different thread, or
        some combination of the two.  It is valid for a C{do} method to
        schedule C{task} in such a way that it may never be executed.

        It is important for some implementations to provide specific properties
        with respect to where C{task} is executed, of course, and client code
        may rely on a more specific implementation of C{do} than L{IWorker}.

        @param task: a task to call in a thread or other concurrent context.
        @type task: 0-argument callable

        @raise AlreadyQuit: if C{quit} has been called.
        Nr   )r   s    r   Údoz
IWorker.do   ó   € € € r   c                  ó   — dS )z¹
        Free any resources associated with this L{IWorker} and cause it to
        reject all future work.

        @raise AlreadyQuit: if this method has already been called.
        Nr   r   r   r   ÚquitzIWorker.quit0   r   r   )r   r	   r
   r   r   r   r   r   r   r   r   r      sX   € € € € € ðð ð�˜"˜d˜(Ô#ð ¨ð ð ð ð ð(ð ð ð ð r   r   c                   ó   — e Zd ZdZdS )ÚIExclusiveWorkerz“
    Like L{IWorker}, but with the additional guarantee that the callables
    passed to C{do} will not be called exclusively with each other.
    Nr   r   r   r   r   r   9   s   € € € € € ðð ð ð r   r   N)	r   Útypingr   Úzope.interfacer   Ú	Exceptionr   r   r   r   r   r   ú<module>r      s¾   ðð
ð ð
 Ð Ð Ð Ð Ð à $Ð $Ð $Ð $Ð $Ð $ðð ð ð ð �)ñ ô ð ð!ð !ð !ð !ð !ˆiñ !ô !ð !ðHð ð ð ð �wñ ô ð ð ð r   