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

Handle cancellation in `DatabasePool.runInteraction()` (#12199)


To handle cancellation, we ensure that `after_callback`s and
`exception_callback`s are always run, since the transaction will
complete on another thread regardless of cancellation.

We also wait until everything is done before releasing the
`CancelledError`, so that logging contexts won't get used after they
have been finished.

Signed-off-by: default avatarSean Quah <seanq@element.io>
parent fc9bd620
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