twisted.persisted.crefutil._Defer(Deferred, NotKnown)
class documentationtwisted.persisted.crefutil
View Source
(View In Hierarchy)
Method | __init__ | Initialize a Deferred . |
Method | __setitem__ | Undocumented |
Method | addDependant | Undocumented |
Inherited from Deferred:
Instance Variable | called | A flag which is False until either callback or
errback is called and afterwards always True . (type: bool ) |
Instance Variable | paused | A counter of how many unmatched pause calls have been made on
this instance. (type: int ) |
Method | addCallbacks | Add a pair of callbacks (success and error) to this Deferred . |
Method | addCallback | Convenience method for adding just a callback. |
Method | addErrback | Convenience method for adding just an errback. |
Method | addBoth | Convenience method for adding a single callable as both a callback and an errback. |
Method | addTimeout | Time out this Deferred by
scheduling it to be cancelled after timeout seconds. |
Method | chainDeferred | Chain another Deferred to
this Deferred . |
Method | callback | Run all success callbacks that have been added 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. |
Method | cancel | Cancel this Deferred . |
Method | __str__ | Return a string representation of this Deferred . |
Method | __iter__ | Undocumented |
Method | send | Undocumented |
Method | asFuture | Adapt a Deferred into
a asyncio.Future
which is bound to loop . |
Class Method | fromFuture | Adapt an asyncio.Future
to a Deferred . |
Instance Variable | _suppressAlreadyCalled | 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. (type: bool ) |
Instance Variable | _runningCallbacks | A flag which is True while this instance is executing its
callback chain, used to stop recursive execution of _runCallbacks (type: bool ) |
Instance Variable | _chainedTo | If this Deferred is
waiting for the result of another Deferred , this
is a reference to the other Deferred. Otherwise, None . |
Method | _startRunCallbacks | Undocumented |
Method | _continuation | Build a tuple of callback and errback with _CONTINUE . |
Method | _runCallbacks | Run the chain of callbacks once a result is available. |
Inherited from NotKnown:
Method | resolveDependants | Undocumented |
Method | __hash__ | Undocumented |
Initialize a Deferred
.
Parameters | canceller | a callable used to stop the pending operation scheduled by this Deferred when
Deferred.cancel
is invoked. The canceller will be passed the deferred whose cancelation is
requested (i.e., self).
If a canceller is not given, or does not invoke its argument's
Note that if a canceller is not given, Deferred . The
return result is ignored.) |