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
da4e5254
Commit
da4e5254
authored
5 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
comment for run_in_background
parent
1d16f5ea
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/logging/context.py
+3
-0
3 additions, 0 deletions
synapse/logging/context.py
with
3 additions
and
0 deletions
synapse/logging/context.py
+
3
−
0
View file @
da4e5254
...
@@ -571,6 +571,9 @@ def run_in_background(f, *args, **kwargs):
...
@@ -571,6 +571,9 @@ def run_in_background(f, *args, **kwargs):
yield or await on (for instance because you want to pass it to
yield or await on (for instance because you want to pass it to
deferred.gatherResults()).
deferred.gatherResults()).
If f returns a Coroutine object, it will be wrapped into a Deferred (which will have
the side effect of executing the coroutine).
Note that if you completely discard the result, you should make sure that
Note that if you completely discard the result, you should make sure that
`f` doesn
'
t raise any deferred exceptions, otherwise a scary-looking
`f` doesn
'
t raise any deferred exceptions, otherwise a scary-looking
CRITICAL error about an unhandled error will be logged without much
CRITICAL error about an unhandled error will be logged without much
...
...
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