Replace @async mentions in manual with Threads.@spawn#55315
Replace @async mentions in manual with Threads.@spawn#55315LilithHafner merged 6 commits intoJuliaLang:masterfrom
@async mentions in manual with Threads.@spawn#55315Conversation
Re-add Base.@async to parallel.md
|
Tangentially related issue: |
Would it make sense to merge the multi-threading and asynchronous programming pages at this point? Tasks seem to be the main way to do either at this point, and single-threaded asynchronous programming is now basically a special case of the parallel + concurrent model (if I understand correctly). Alternatively, it could make sense to refactor them into a "how to" page focused on Tasks, and a lower-level details page focused on Atomics, Threadpools, etc. I could take a stab at it if there's interest. |
|
Thank you for your contribution! This PR looks great. @giordano, documenting |
I believe these make more sense as async than spawn, otherwise more orchestration is needed in the example. Were changed to spawn in JuliaLang#55315
I believe these make more sense as async than spawn, otherwise more orchestration is needed in the example. Were changed to spawn in JuliaLang#55315
I believe these make more sense as async than spawn, otherwise more orchestration is needed in the example. Were changed to spawn in JuliaLang#55315
According to #50356,
@asyncis no longer recommended and new code should useThreads.@spawn. However, the manual still mentions@asyncin several places. This PR updates the user-visible mentions of@asynctoThreads.@spawn. I made sure tomake docslocally afterwards and check that the references were updated.Note: I'm not experienced with open source, so please let me know how I could clean up this PR or do things better. I tried to follow the contributing guidelines as closely as possible but it's likely I missed something.