kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio.core: Add test for callback args to call_soon().
rodzic
241e7b1a3b
commit
c01004d71f
|
@ -0,0 +1,16 @@
|
|||
try:
|
||||
import uasyncio.core as asyncio
|
||||
except:
|
||||
import asyncio
|
||||
|
||||
|
||||
def cb(a, b):
|
||||
assert a == "test"
|
||||
assert b == "test2"
|
||||
loop.stop()
|
||||
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.call_soon(cb, "test", "test2")
|
||||
loop.run_forever()
|
||||
print("OK")
|
Ładowanie…
Reference in New Issue