Skip to content
Snippets Groups Projects
Unverified Commit 90b23270 authored by Sean Quah's avatar Sean Quah Committed by GitHub
Browse files

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: default avatarSean Quah <seanq@element.io>
parent 54f674f7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment