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”:
Search in specific fields. The following search matches all objects
in "twisted.mail" that matches “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”:
Results provided by Lunr.js
class CooperativeTask: (source)
CooperativeTask is a task object inside a
Cooperator, which can be paused, resumed, and stopped. It can also have its completion (or termination) monitored.
||A private constructor: to create a new
||Resume processing of a paused
||Stop further processing of this task.|
||If this task has been stopped, raise the appropriate subclass of
||Perform one unit of work for this task, retrieving one item from its iterator, stopping if there are no further items in the iterator, and pausing if the result was a
||The completion-state of this
||the list of
||the iterator to iterate when this
||the number of times that this
Cooperator): (source) ¶
A private constructor: to create a new
CooperativeTask. Stop doing work until
CooperativeTask.resume is called. If pause is called more than once, resume must be called an equal number of times to resume this task.
|if this task has already finished or completed.|
Resume processing of a paused
|if this |
Stop further processing of this task.
|if this |
Deferred[: (source) ¶
Deferred notification of when this task is complete.
If this task has been stopped, raise the appropriate subclass of
Union[): (source) ¶
Iterator[ _TaskResultT], Failure]
|deferred||the result to fire all the deferreds with.|
Perform one unit of work for this task, retrieving one item from its iterator, stopping if there are no further items in the iterator, and pausing if the result was a
The completion-state of this
None if the task is not yet completed, an instance of
TaskStopped if stop was called to stop this task early, of
TaskFailed if the application code in the iterator raised an exception which caused it to terminate, and of
TaskDone if it terminated normally via raising StopIteration.
Cooperator that this
CooperativeTask participates in, which is used to re-insert it upon resume.
the list of
Deferreds to fire when this task completes, fails, or finishes.
the iterator to iterate when this
CooperativeTask is asked to do work.
the number of times that this
CooperativeTask has been paused; if 0, it is running.