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 DeferredLock(_ConcurrencyPrimitive): (source)
A lock for event driven systems.
||Attempt to acquire the lock. Returns a
||Release the lock. If there is a waiting list, then the first
||True when this Lock has been acquired, false at all other times. Do not change this value, but it is useful to examine for the equivalent of a "non-blocking" acquisition.|
||Remove a deferred d from our waiting list, as the deferred has been canceled.|
||We can be used as an asynchronous context manager.|
||Acquire, run, release.|
Deferred[: (source) ¶
Attempt to acquire the lock. Returns a
Deferred that fires on lock acquisition with the
DeferredLock as the value. If the lock is locked, then the Deferred is placed at the end of a waiting list.
|a ||a |
_DeferredLockT): (source) ¶
True when this Lock has been acquired, false at all other times. Do not change this value, but it is useful to examine for the equivalent of a "non-blocking" acquisition.
Deferred[): (source) ¶
Remove a deferred d from our waiting list, as the deferred has been canceled.
Note: We do not need to wrap this in a try/except to catch d not being in self.waiting because this canceller will not be called if d has fired. release() pops a deferred out of self.waiting and calls it, so the canceller will no longer be called.
|d:||The deferred that has been canceled.|