Disable threading in WASM environments #3159
|
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 starlette/starlette/datastructures.py Lines 453 to 461 in fd53a8f So I was wondering if it would make sense to
|
Replies: 2 comments 2 replies
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? 🤔 |
It didn't look that easy. There were a lot of changes to actually make it work.