mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-08 17:32:09 +00:00
![Sean Quah](/assets/img/avatar_default.png)
`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>
2 lines
166 B
Plaintext
2 lines
166 B
Plaintext
Add `delay_cancellation` utility function, which behaves like `stop_cancellation` but waits until the original `Deferred` resolves before raising a `CancelledError`.
|