Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
a4cb2165
Commit
a4cb2165
authored
8 years ago
by
Richard van der Hoff
Committed by
Richard van der Hoff
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
log_contexts.rst: fix formatting of Note block
Apparently the github RST renderer doesn't like Note blocks.
parent
d78d0898
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/log_contexts.rst
+6
-6
6 additions, 6 deletions
docs/log_contexts.rst
with
6 additions
and
6 deletions
docs/log_contexts.rst
+
6
−
6
View file @
a4cb2165
...
@@ -94,13 +94,13 @@ To circumvent this problem, synapse code assumes that, wherever you have a
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment