synapse-old/synapse/events
Sean Quah a00462dd99
Implement cancellation support/protection for module callbacks (#12568)
There's no guarantee that module callbacks will handle cancellation
appropriately. Protect module callbacks with read semantics from
cancellation and avoid swallowing `CancelledError`s that arise.

Other module callbacks, such as the `on_*` callbacks, are presumed to
live on code paths that involve writes and aren't cancellation-friendly.
These module callbacks have been left alone.

Signed-off-by: Sean Quah <seanq@element.io>
2022-05-09 12:31:14 +01:00
..
__init__.py fix imports 2022-05-03 13:59:28 +01:00
builder.py Fix typechecker problems exposed by signedjson 1.1.2 (#12326) 2022-03-29 21:37:50 +00:00
presence_router.py Implement cancellation support/protection for module callbacks (#12568) 2022-05-09 12:31:14 +01:00
snapshot.py Faster joins: persist to database (#12012) 2022-03-01 12:49:54 +00:00
spamcheck.py Implement cancellation support/protection for module callbacks (#12568) 2022-05-09 12:31:14 +01:00
third_party_rules.py Implement cancellation support/protection for module callbacks (#12568) 2022-05-09 12:31:14 +01:00
utils.py Convert stringy power levels to integers on room upgrade (#12657) 2022-05-07 13:37:29 +01:00
validator.py Fix another jsonschema typecheck error (#11830) 2022-01-25 15:29:28 -05:00