mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-27 20:19:03 +02:00
Clarify docstring
This commit is contained in:
parent
1de28183cb
commit
6e677403b7
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@ class ObservableDeferred(object):
|
||||||
|
|
||||||
def observe(self) -> defer.Deferred:
|
def observe(self) -> defer.Deferred:
|
||||||
"""Observe the underlying deferred.
|
"""Observe the underlying deferred.
|
||||||
|
|
||||||
|
This returns a brand new deferred that is resolved when the underlying
|
||||||
|
deferred is resolved. Interacting with the returned deferred does not
|
||||||
|
effect the underdlying deferred.
|
||||||
"""
|
"""
|
||||||
if not self._result:
|
if not self._result:
|
||||||
d = defer.Deferred()
|
d = defer.Deferred()
|
||||||
|
|
Loading…
Reference in a new issue