adafruit / Adafruit_CircuitPython_asyncio

CIrcuitPython subset of CPython asyncio library
MIT License
28 stars 16 forks source link

Warn when an `await` may be missing #13

Closed dhalbert closed 2 years ago

dhalbert commented 2 years ago

If this assert fails, it is almost invariably due to a missing await: https://github.com/dhalbert/Adafruit_CircuitPython_asyncio/blob/e8c2d389758d94629a12bfab92c6b11f2eb6cdbf/asyncio/core.py#L68

Add a message suggesting that the user should check for a missing await.

I have seen this multiple times, and someone else now saw it as well, for the same reason.