mirror of
https://github.com/element-hq/synapse.git
synced 2026-03-31 17:05:50 +00:00
1. async_helpers.py (40): Old timeout_deferred, delay_cancellation, ObservableDeferred, gather_results functions — have importers and use Deferred internals (.addBoth, .callback, .errback) 2. deferred_cache.py (11): Entire DeferredCache class — used by descriptors.py 3. descriptors.py (9): @cached() decorator using DeferredCache 4. http/client.py (11): Twisted HTTP client using Producer/Consumer patterns 5. http/connectproxyclient.py (5): Twisted Protocol for HTTPS proxying 6. logging/context.py (7): Twisted fallback in run_in_background 7. Reactor entry points (~15): defer.ensureDeferred in startup/shutdown/render These are the deep Twisted integration points — HTTP Protocol classes, the cache system, and reactor entry points. Each requires either a full class rewrite or depends on the reactor switching to asyncio.