Update async keyboard code

... per https://github.com/adafruit/circuitpython/issues/8412
Otherwise this is incompatible with both 8.x and 9.
This commit is contained in:
Jeff Epler 2024-01-15 10:14:08 -06:00
parent f55e7cedd0
commit 4c2af96047
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -142,7 +142,7 @@ class AsyncEventQueue:
self._events = events self._events = events
async def __await__(self): async def __await__(self):
yield asyncio.core._io_queue.queue_read(self._events) await asyncio.core._io_queue.queue_read(self._events)
return self._events.get() return self._events.get()
def __enter__(self): def __enter__(self):