docs icon indicating copy to clipboard operation
docs copied to clipboard

brief asyncio / multiprocessing, remove link to external asyncio guide

Open jokester opened this issue 9 months ago • 2 comments

📚 Context

The medium article linked is IMO inappropriate to be referred to from streamlit doc, because its analysis and workaround to the asyncio hurdle is too arguable:

  1. Tornado server has a event loop, this does not mean it should be used to run user's (potentially blocking) coroutine.
  2. There are apparently other possibilities than run_until_complete, like in https://github.com/streamlit/streamlit/issues/8488#issuecomment-2844134343 . I think the author assumed too much on the problem to solve.
  3. The workaround it suggested, to monkey patch asyncio module with a library, is too intrusive.

🧠 Description of Changes

  1. a little more comparison about multiprocessing / asyncio in this page
  2. remove the link to the article.

💥 Impact

Size:

  • [x] Small
  • [ ] Not small

🌐 References

  • [ ] Notion

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

jokester avatar May 02 '25 16:05 jokester