Go to the latest version of this document.

# ``twisted`.`_threads`.`_convenience`.`Quit``

class documentation

`class Quit: (source)`

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): (source)

Create a `Quit` un-set.

def check(self): (source)

Check if the flag has been set.

Raises
`AlreadyQuit` | If it has been set.

def set(self): (source)

Set the flag if it has not been set.

Raises
`AlreadyQuit` | If it has been set.

isSet: `bool` = (source)

Whether this flag is set.