Skip to content

asyncio, async, and await would be super helpful #619

Description

@wolf

asyncio provides event loop code and asynchronous coroutines that fit perfectly with the I/O needs of these all-I/O boards.

Strongly related to #197, though things have changed since then. I'd love to see async and await available and used with asyncio. I have time to work on this but would need guidance on how to do the right thing.

Activity

  1. added this to the Long term milestone on Feb 13, 2018
  2. tannewt commented on Feb 13, 2018

    @tannewt
    Member

    @wolf adding this would be awesome! I don't know much about asyncio myself so it'd be great to chat about what is needed for it. I know micropython has uasyncio but haven't looked at it myself. I'd want us to match the way CPython works even if MicroPython doesn't.

    When are you available to chat or what guidance can I help with? I'm on Discord during the days Pacific time and can hop on other times if I know ahead of time. Thanks!

  3. kattni commented on Feb 13, 2018

    @kattni

    It'd be great if we could coordinate with @dhalbert as well.

  4. wolf commented on Feb 13, 2018

    @wolf
    Author

    @tannewt Telling me that we want to match CPython over MicroPython is exactly the kind of guidance I'm looking for. I'll have to figure out the details; I'm starting from scratch here. Anything you can tell me about goals, constraints and dreams will be a help. I am Eastern time, so my 4pm (about when I arrive home from work everyday) might be convenient for both of us. Once we pick a time, just about any day works for me. Work for you? (and @dhalbert and @kattni)

  5. tannewt commented on Feb 13, 2018

    @tannewt
    Member

    4pm eastern works great for me! Wednesday - Friday are best for me.

    There is more design guidance here: https://circuitpython.readthedocs.io/en/latest/docs/design_guide.html Its a random assortment of stuff.

  6. dhalbert commented on Feb 13, 2018

    @dhalbert
    Collaborator

    Yes, most days are fine for me. Just Monday afternoons are taken for all three of us. You saw that there is a MICROPY_PY_ASYNC_AWAIT compile option? We just don't have it turned on.

  7. wolf commented on Feb 13, 2018

    @wolf
    Author

    Then I propose this coming Thursday, 15 February at 4pm Eastern on Discord. That will give me a little time to do research first so I have the right grounding to absorb your advice.

  8. kattni commented on Feb 13, 2018

    @kattni

    Thursday 4pm works for me.

  9. tannewt commented on Feb 13, 2018

    @tannewt
    Member

    Works for me!

  10. dhalbert commented on Feb 13, 2018

    @dhalbert
    Collaborator

    OK by me too.

  11. sander76 commented on Apr 4, 2018

    @sander76

    Any news on this ? Starting to jump in circuitpython and I can see the benefits here. (Having experience with asyncio on Cpython)

  12. wolf commented on Apr 4, 2018

    @wolf
    Author

    My goal is to have this working for PyCon and I’m still on track for that. As soon as I get something that doesn’t break the world I’ll push a branch for people to play with.

  13. notro commented on Jan 10, 2019

    @notro

    See #1415 for some work on this.

  14. dhalbert commented on Nov 1, 2020

    @dhalbert
    Collaborator

    Fixed by #3540.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions