mirror of
https://github.com/micropython/micropython.git
synced 2025-09-05 17:30:41 +02:00
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
18 lines
260 B
Python
18 lines
260 B
Python
# Test get_event_loop()
|
|
|
|
try:
|
|
import asyncio
|
|
except ImportError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
|
|
async def main():
|
|
print("start")
|
|
await asyncio.sleep(0.01)
|
|
print("end")
|
|
|
|
|
|
loop = asyncio.get_event_loop()
|
|
loop.run_until_complete(main())
|