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`.`interfaces`.`IReactorThreads``

interface documentation

`class IReactorThreads(IReactorFromThreads, IReactorInThreads): (source)`

Known implementations: `twisted.internet.base.ReactorBase`

View In Hierarchy

Dispatch methods to be run in threads.

Internally, this should use a thread pool and dispatch methods to them.

Method | `getThreadPool` | Return the threadpool used by `IReactorInThreads.callInThread`. Create it first if necessary.
Method | `suggestThreadPoolSize` | Suggest the size of the internal threadpool used to dispatch functions passed to `IReactorInThreads.callInThread`.

Inherited from `IReactorFromThreads`:

Method | `callFromThread` | Cause a function to be executed by the reactor thread.

Inherited from `IReactorInThreads` (via `IReactorFromThreads`):

Method | `callInThread` | Run the given callable object in a separate thread, with the given arguments and keyword arguments.

def getThreadPool(): (source)

Return the threadpool used by `IReactorInThreads.callInThread`. Create it first if necessary.

Returns
`ThreadPool` | Undocumented

def suggestThreadPoolSize(size): (source)

Suggest the size of the internal threadpool used to dispatch functions passed to `IReactorInThreads.callInThread`.

Parameters
size:`int` | Undocumented