Commit 310080c
docs(distributing): note fork-worker threading.local() inheritance
Forked workers inherit the parent's `threading.local()` slots via
copy-on-write until first write, so a child can silently observe a
sender or worker context the parent set. Spell that out next to the
existing thread-local caveat and tell readers to (re)initialize the
slot in the worker rather than rely on inherited state.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent eb762a0 commit 310080c
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
191 | 199 | | |
192 | 200 | | |
193 | 201 | | |
| |||
0 commit comments