diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2022-03-14 17:52:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 17:52:15 +0000 |
commit | 90b2327066d2343faa86c464a182b6f3c4422ecd (patch) | |
tree | 013f856afd16eda88efcf00415e5ad2024b266f2 /changelog.d | |
parent | Deprecate the groups/communities endpoints and add an experimental configurat... (diff) | |
download | synapse-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 'changelog.d')
-rw-r--r-- | changelog.d/12180.misc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/12180.misc b/changelog.d/12180.misc new file mode 100644 index 0000000000..7a347352fd --- /dev/null +++ b/changelog.d/12180.misc @@ -0,0 +1 @@ +Add `delay_cancellation` utility function, which behaves like `stop_cancellation` but waits until the original `Deferred` resolves before raising a `CancelledError`. |