New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using asyncio in _thread #8340
Labels
Comments
You beat me to it. Give #8310 and apparently reliable two-core operation I was about to try this. I can see a definite use case for a copy of |
Yes this would be a good enhancement. (Related, I've sometimes wanted to run a separate, independent uasyncio instance within a soft IRQ handler...). |
Some thoughts on this:
|
tannewt
added a commit
to tannewt/circuitpython
that referenced
this issue
Aug 29, 2023
Use QSTR_GLOBAL_REQUIREMENTS to give explicit dependency for qstr gen…
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello.
This might be a feature request: asyncio is missing support for threading
Tested in two ports: unix with uasyncio module included and rp2 with #8310 patch
Exception within a few seconds in both ports.
Sometimes
ValueError: generator already executing
Sometimes
'NoneType' object has no attribute 'ph_child'
Also I would like to create new event loop in new thread (which is automatically done in CPython). Do you think it is possible to implement proper event loop? or would there be limitations in VM? (is generator is thread safe in VM level?)
The text was updated successfully, but these errors were encountered: