Commit 6acc796
committed
docs(teams): justify per-thread keying of _active_streams
Three separate review bots flagged the thread-id keying of
``_active_streams`` as a potential cross-handler corruption risk on the
DM streaming path. Add an inline comment at the registration site
pointing readers at the upstream parallel and the concurrency
invariant that makes per-thread keying safe today, plus a note that a
per-handler ContextVar is a tracked Python-only follow-up rather than
in-scope for the parity sync.1 parent 1cedd58 commit 6acc796
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
438 | 447 | | |
439 | 448 | | |
440 | 449 | | |
| |||
0 commit comments