| Commit message (Collapse) | Author | Files | Lines |
|
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 above 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>
|
|
Signed-off-by: Sean Quah <seanq@element.io>
|
|
Signed-off-by: Sean Quah <seanq@element.io>
|
|
Signed-off-by: Sean Quah <seanq@element.io>
|
|
|
|
|
|
`@cached` and `@cachedList` must wait until the wrapped method has
completed before raising `CancelledError`s, otherwise the wrapped method
will continue running in the background with a logging context that has
been marked as finished.
|
|
`delay_cancellation` behaves like `stop_cancellation`, except it
de |