Skip to content

Raise when an event handler is awaited outside any client's event - #7821

Merged
FarhanAliRaza merged 4 commits into
mainfrom
fix/await-handler-without-token
Nov 11, 2026
Merged

FarhanAliRaza merged 4 commits into
mainfrom
fix/await-handler-without-token

Raise when a handler is awaited outside any client's event

83a3043
Select commit
Loading
Failed to load commit list.
CodSpeed / CodSpeed Performance Analysis failed Nov 11, 2026

Performance Regression: -7.32%

2 warnings

⚠️ 15 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚠️ 2 benchmarks with a significant change ran on different hardware

Their base and head results were measured on machines with a different CPU, core count or memory, so the changes might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

❌ 2 regressed benchmarks
✅ 149 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_on_event_router_data 1.8 ms 2 ms -9.52%
❌ test_route_matching[1000] 47.8 µs 50.3 µs -5.07%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing fix/await-handler-without-token (83a3043) with main (2d71015)

Open in CodSpeed