Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`internet`.`base`.`_SignalReactorMixin``

class documentation

`class _SignalReactorMixin: (source)`

Known subclasses: `twisted.internet.iocpreactor.reactor.IOCPReactor`, `twisted.internet.posixbase.PosixReactorBase`

View In Hierarchy

Private mixin to manage signals: it installs signal handlers at start time, and define run method.

It can only be used mixed in with `ReactorBase`, and has to be defined first in the inheritance (so that method resolution order finds startRunning first).

Method | `mainLoop` | Undocumented
Method | `run` | Undocumented
Method | `startRunning` | Extend the base implementation in order to remember whether signal handlers should be installed later.
Method | `_handleSignals` | Install the signal handlers for the Twisted event loop.
Method | `_reallyStartRunning` | Extend the base implementation by also installing signal handlers, if `self._installSignalHandlers` is true.
Instance Variable | `_installSignalHandlers` | A flag which indicates whether any signal handlers will be installed during startup. This includes handlers for SIGCHLD to monitor child processes, and SIGINT, SIGTERM, and SIGBREAK to stop the reactor.

def mainLoop(self): (source)
overridden in `twisted.internet._threadedselect.ThreadedSelectReactor`, `twisted.internet.cfreactor.CFReactor`

Undocumented

def run(self, installSignalHandlers=True): (source)
overridden in `twisted.internet._glibbase.GlibReactorBase`, `twisted.internet._glibbase.PortableGlibReactorBase`, `twisted.internet._threadedselect.ThreadedSelectReactor`, `twisted.internet.asyncioreactor.AsyncioSelectorReactor`

Undocumented

Parameters
installSignalHandlers:`bool` | Undocumented

def startRunning(self, installSignalHandlers=True): (source)

Extend the base implementation in order to remember whether signal handlers should be installed later.

Parameters
installSignalHandlers:`bool` | A flag which, if set, indicates that handlers for a number of (implementation-defined) signals should be installed during startup.

def _handleSignals(self): (source)
overridden in `twisted.internet.posixbase.PosixReactorBase`

Install the signal handlers for the Twisted event loop.

def _reallyStartRunning(self): (source)

Extend the base implementation by also installing signal handlers, if `self._installSignalHandlers` is true.

_installSignalHandlers = (source)

A flag which indicates whether any signal handlers will be installed during startup. This includes handlers for SIGCHLD to monitor child processes, and SIGINT, SIGTERM, and SIGBREAK to stop the reactor.