mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-22 02:05:24 +00:00
![Sean Quah](/assets/img/avatar_default.png)
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: Sean Quah <seanq@element.io>
2 lines
56 B
Plaintext
2 lines
56 B
Plaintext
Handle cancellation in `DatabasePool.runInteraction()`.
|