summary refs log tree commit diff
path: root/synapse/util/retryutils.py
diff options
context:
space:
mode:
authorSean Quah <8349537+squahtx@users.noreply.github.com>2022-03-14 17:52:15 +0000
committerGitHub <noreply@github.com>2022-03-14 17:52:15 +0000
commit90b2327066d2343faa86c464a182b6f3c4422ecd (patch)
tree013f856afd16eda88efcf00415e5ad2024b266f2 /synapse/util/retryutils.py
parentDeprecate the groups/communities endpoints and add an experimental configurat... (diff)
downloadsynapse-90b2327066d2343faa86c464a182b6f3c4422ecd.tar.xz
Add `delay_cancellation` utility function (#12180)
`delay_cancellation` behaves like `stop_cancellation`, except it
delays `CancelledError`s until the original `Deferred` resolves.
This is handy for unifying cleanup paths and ensuring that uncancelled
coroutines don't use finished logcontexts.

Signed-off-by: Sean Quah <seanq@element.io>
Diffstat (limited to 'synapse/util/retryutils.py')
0 files changed, 0 insertions, 0 deletions