← Back
Editing: _convenience.cpython-38.pyc
U W[� � @ s8 d Z ddlmZmZmZ ddlmZ G dd� de�ZdS )zI Common functionality used within the implementation of various workers. � )�absolute_import�division�print_function� )�AlreadyQuitc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �Quitz� A flag representing whether a worker has been quit. @ivar isSet: Whether this flag is set. @type isSet: L{bool} c C s d| _ dS )z* Create a L{Quit} un-set. FN)�isSet��self� r �?/usr/lib/python3/dist-packages/twisted/_threads/_convenience.py�__init__ s z Quit.__init__c C s | � � d| _dS )zg Set the flag if it has not been set. @raise AlreadyQuit: If it has been set. TN)�checkr r r r r �set s zQuit.setc C s | j rt� �dS )zb Check if the flag has been set. @raise AlreadyQuit: If it has been set. N)r r r r r r r '