forked from MirrorHub/synapse
Docs
This commit is contained in:
parent
b282fe7170
commit
5b5b171f3e
1 changed files with 5 additions and 0 deletions
|
@ -89,6 +89,11 @@ class ObservableDeferred(object):
|
||||||
deferred.addCallbacks(callback, errback)
|
deferred.addCallbacks(callback, errback)
|
||||||
|
|
||||||
def observe(self):
|
def observe(self):
|
||||||
|
"""Observe the underlying deferred.
|
||||||
|
|
||||||
|
Can return either a deferred if the underlying deferred is still pending
|
||||||
|
(or has failed), or the actual value. Callers may need to use maybeDeferred.
|
||||||
|
"""
|
||||||
if not self._result:
|
if not self._result:
|
||||||
d = defer.Deferred()
|
d = defer.Deferred()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue