Add yield support in async function
Checks
-
I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.
-
I've searched for existing issues regarding this feature, and didn't find any.
Description
Just in PEP 525, it's really easy to make a async generator instead of coding a new class with aiter and anext .
Just like this:
async def test():
for i in range(5):
await something
' yield i
Code Size
I believe this is an important syntax that makes asynchronous generation as convenient as normal generators.
Implementation
- I intend to implement this feature and would submit a Pull Request if desirable.
- I hope the MicroPython maintainers or community will implement this feature.
- I would like to Sponsor development of this feature.
Watch mode for mpremote
Checks
-
I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.
-
I've searched for existing issues regarding this feature, and didn't find any.
Description
Please consider adding a "watch" mode for mpremote, which will watch a root directory for changes and sync those changes to the micropython filesystem. This would make me much more efficient during heavy cycles of development.
Code Size
I think the efficiency gains for MicroPython developers would be great.
Implementation
- I intend to implement this feature and would submit a Pull Request if desirable.
- I hope the MicroPython maintainers or community will implement this feature.
- I would like to Sponsor development of this feature.