0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-09-08 10:55:31 +02:00
Commit graph

1 commit

Author SHA1 Message Date
Sean Quah
90b2327066
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>
2022-03-14 17:52:15 +00:00