kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio: test_http_client.py: Use run_until_complete().
rodzic
1256840278
commit
35f4720962
|
@ -20,6 +20,5 @@ url = "google.com"
|
|||
loop = asyncio.get_event_loop()
|
||||
#task = asyncio.async(print_http_headers(url))
|
||||
#loop.run_until_complete(task)
|
||||
loop.call_soon(print_http_headers(url))
|
||||
loop.run_forever()
|
||||
loop.run_until_complete(print_http_headers(url))
|
||||
loop.close()
|
||||
|
|
Ładowanie…
Reference in New Issue