Skip to content

Import uasyncio #119

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

Closed
mishal opened this issue May 7, 2024 · 2 comments
Closed

Import uasyncio #119

mishal opened this issue May 7, 2024 · 2 comments

Comments

@mishal
Copy link
Contributor

mishal commented May 7, 2024

Hello Peter,

first let me thank you for this great repository and docs!

In micropython v 1.22.1 (released Oct 6, 2023) uasyncio becomes asyncio (see: https://github.com/micropython/micropython/releases/tag/v1.21.0) . I do not know what version of micropython should this repo support, but imports across code in this repo imports uasyncio or uses try-catch block which tries to to import uasyncio with fallback to asyncio. The release notes comments this change as: Now, one should just always import the non-u-version and no longer think about u-naming.

It's not a big deal, but may cause some confusion.

@peterhinch
Copy link
Owner

Thanks for the report. I have updated the tutorial text, but dealing with the various modules is on my todo list.

@peterhinch
Copy link
Owner

I have now removed all references to uasyncio save an intentional one in the tutorial. Thanks for prompting me to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants