Repository navigation
Conversation
Documentation build overview
41 files changed ·
|
Documentation build overview
|
willingc
left a comment
There was a problem hiding this comment.
@ngoldbaum This draft is off to a fabulous start. A few suggestions to ground readers before diving into specifics. Thank you!
| :class:`concurrent.futures.ThreadPoolExecutor`. Each thread runs its own | ||
| function :term:`concurrently <concurrency>` with the others. |
There was a problem hiding this comment.
| :class:`concurrent.futures.ThreadPoolExecutor`. Each thread runs its own | |
| function :term:`concurrently <concurrency>` with the others. | |
| :class:`concurrent.futures.ThreadPoolExecutor`. Each thread works :term:`concurrently <concurrency>` with the others. |
| appear to freeze because it is doing other work and cannot check for user | ||
| input. When a function makes its caller wait for an arbitrarily long time, it |
There was a problem hiding this comment.
| appear to freeze because it is doing other work and cannot check for user | |
| input. When a function makes its caller wait for an arbitrarily long time, it | |
| appear to freeze while doing other work and unable to check for user | |
| input. When a function makes its caller wait for an arbitrarily long time, it |
|
Thanks @willingc I think I integrated your comments. Instead of bolding things for emphasis, I linked to a table that illustrates the trade-offs. I also added an outline for a "why should I use threads" section, which I think this needs and was missing. I also opened two other PRs related to this work:
Once those are reviewed separately I'll update this to link to text from those PRs where appropriate. I expect there to be more general docs improvements spawned by this work. I'll be at the docs team meeting tomorrow to get a temperature check on this approach. |
Part of #145912.
Adds a practical introduction to writing correct multi-threaded Python code, covering race conditions, sharing data, and coordinating threads on both default and free-threaded builds.
Opening as a draft for feedback on the scope and structure and to get a docs preview; several sections are still outlines.