«
class documentation

class Quit:

Constructor: Quit()

View In Hierarchy

A flag representing whether a worker has been quit.

Method __init__ Create a Quit un-set.
Method check Check if the flag has been set.
Method set Set the flag if it has not been set.
Instance Variable isSet Whether this flag is set.
def __init__(self):

Create a Quit un-set.

def check(self):

Check if the flag has been set.

Raises
AlreadyQuitIf it has been set.
def set(self):

Set the flag if it has not been set.

Raises
AlreadyQuitIf it has been set.
isSet: bool =

Whether this flag is set.