Disable threading in WASM environments #3159
Unanswered
ryanking13
asked this question in
Potential Issue
Replies: 2 comments 1 reply
This comment was marked as spam.
This comment was marked as spam.
-
|
Hey @ryanking13 , sorry the delay here. That's not the only place that we have threads involved. I'm not sure how easy it would be to fully disable threading, but I'm open to review a PR if you want to give it a try. Maybe we do it via env var to see how it would look like first? 🤔 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am the maintainer of Pyodide, which runs Python in the browser based on WebAssembly. First of all, thank you for maintaining starlette and uvicorn.
While I was experimenting with
starlettethroughfastAPI, I noticed that when I tried to upload a large file, it delegates the process to thread (run_in_threadpool), which makes it fail in WASM environment becuase of missing threading support.starlette/starlette/datastructures.py
Lines 453 to 461 in fd53a8f
So I was wondering if it would make sense to
Beta Was this translation helpful? Give feedback.
All reactions