Skip to content
Snippets Groups Projects
Commit da4e5254 authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

comment for run_in_background

parent 1d16f5ea
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment