mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 21:53:50 +01:00
log_contexts.rst: fix formatting of Note block
Apparently the github RST renderer doesn't like Note blocks.
This commit is contained in:
parent
d78d08981a
commit
a4cb21659b
1 changed files with 6 additions and 6 deletions
|
@ -94,13 +94,13 @@ To circumvent this problem, synapse code assumes that, wherever you have a
|
||||||
deferred, you will want to yield on it. To that end, whereever functions return
|
deferred, you will want to yield on it. To that end, whereever functions return
|
||||||
a deferred, we adopt the following conventions:
|
a deferred, we adopt the following conventions:
|
||||||
|
|
||||||
.. note:: Rules for functions returning deferreds:
|
**Rules for functions returning deferreds:**
|
||||||
|
|
||||||
* If the deferred is already complete, the function returns with the same
|
* If the deferred is already complete, the function returns with the same
|
||||||
logcontext it started with.
|
logcontext it started with.
|
||||||
* If the deferred is incomplete, the function clears the logcontext before
|
* If the deferred is incomplete, the function clears the logcontext before
|
||||||
returning; when the deferred completes, it restores the logcontext before
|
returning; when the deferred completes, it restores the logcontext before
|
||||||
running any callbacks.
|
running any callbacks.
|
||||||
|
|
||||||
That sounds complicated, but actually it means a lot of code (including the
|
That sounds complicated, but actually it means a lot of code (including the
|
||||||
example above) "just works". There are two cases:
|
example above) "just works". There are two cases:
|
||||||
|
|
Loading…
Reference in a new issue