Hi all,
I am just trying out CircuitPython (8.2.4) on a Rasberry PI Pico W, and am encountering an issue with asyncio and events. Below is my minimal code example:
import asyncio
async def main():
enable_event = asyncio.Event()
print("waiting...")
await enable_event.wait()
print("done!")
asyncio.run(main())
I would expect this to wait forever, but instead the code exits without ever printing "done!". Here is the output from the REPL:
code.py output:
waiting...
Code done running.
Can anyone help me understand what I am doing wrong (it works as expected in regular Python)? I have tried Google, but could not find anything useful. Thanks in advance!