Undocumented
Method | __init__ |
Initialize a Deferred . |
Method | __setitem__ |
Undocumented |
Method | add |
Undocumented |
Class Variable | wasset |
Undocumented |
Inherited from Deferred
:
Class Method | from |
Schedule the execution of a coroutine that awaits on Deferred s, wrapping it in a Deferred that will fire on success/failure of the coroutine. |
Class Method | from |
Adapt a Future to a Deferred . |
Method | __init |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __str__ |
Return a string representation of this Deferred . |
Method | add |
Convenience method for adding a single callable as both a callback and an errback. |
Method | add |
Convenience method for adding just a callback. |
Method | add |
Add a pair of callbacks (success and error) to this Deferred . |
Method | add |
Convenience method for adding just an errback. |
Method | add |
Time out this Deferred by scheduling it to be cancelled after timeout seconds. |
Method | as |
Adapt this Deferred into a Future which is bound to loop. |
Method | callback |
Run all success callbacks that have been added to this Deferred . |
Method | cancel |
Cancel this Deferred . |
Method | chain |
Chain another Deferred to this Deferred . |
Method | errback |
Run all error callbacks that have been added to this Deferred . |
Method | pause |
Stop processing on a Deferred until unpause () is called. |
Method | unpause |
Process all callbacks made since pause () was called. |
Class Variable | debug |
Undocumented |
Instance Variable | callbacks |
Undocumented |
Instance Variable | called |
A flag which is False until either callback or errback is called and afterwards always True. |
Instance Variable | paused |
A counter of how many unmatched pause calls have been made on this instance. |
Instance Variable | result |
Undocumented |
Method | _continuation |
Build a tuple of callback and errback with _Sentinel._CONTINUE . |
Method | _run |
Run the chain of callbacks once a result is available. |
Method | _start |
Undocumented |
Instance Variable | _canceller |
Undocumented |
Instance Variable | _chained |
If this Deferred is waiting for the result of another Deferred , this is a reference to the other Deferred. Otherwise, None . |
Instance Variable | _debug |
Undocumented |
Instance Variable | _running |
A flag which is True while this instance is executing its callback chain, used to stop recursive execution of _runCallbacks |
Instance Variable | _suppress |
A flag used by the cancellation mechanism which is True if the Deferred has no canceller and has been cancelled, False otherwise. If True, it can be expected that callback or errback will eventually be called and the result should be silently discarded. |
Inherited from NotKnown
(via Deferred
):
Method | __hash__ |
Undocumented |
Method | resolve |
Undocumented |
Instance Variable | dependants |
Undocumented |
Instance Variable | resolved |
Undocumented |
Instance Variable | resolved |
Undocumented |
twisted.internet.defer.Deferred.__init__
Initialize a Deferred
.
Parameters | |
canceller:a 1-argument callable which takes a Deferred . The return result is ignored. | a callable used to stop the pending operation scheduled by this If a canceller is not given, or does not invoke its argument's callback or errback method, Note that if a canceller is not given, callback or errback may still be invoked exactly once, even though defer.py will have already invoked errback, as described above. This allows clients of code which returns a |