Skip to content

Asyncio with Events - large delay on await #143

Description

@alexphobby

Hello,

I have noticed some issue.
If i use asyncio and i await for event.wait(), i can get very large delays.

My dirty fix: make a new task with:

while True:
        await asyncio.sleep(0)

and i get very good timing, from 2000ms:9500ms to 1ms

Machine: esp32 c6, latest firmware (did encountered this on S3 before, when i gave up on Events :( )

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions