mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
comment for run_in_background
This commit is contained in:
parent
1d16f5ea0e
commit
da4e52544e
1 changed files with 3 additions and 0 deletions
|
@ -571,6 +571,9 @@ def run_in_background(f, *args, **kwargs):
|
|||
yield or await on (for instance because you want to pass it to
|
||||
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
|
||||
`f` doesn't raise any deferred exceptions, otherwise a scary-looking
|
||||
CRITICAL error about an unhandled error will be logged without much
|
||||
|
|
Loading…
Reference in a new issue