kopia lustrzana https://github.com/micropython/micropython-lib
asyncio: Add asyncio.async() dummy factory function.
Not Task bloat implemented (so far?), so just identity function for CPython compatibility.asyncio-segfault
rodzic
aff251b129
commit
d63d73d9fb
|
@ -160,6 +160,10 @@ class IOWrite(SysCall):
|
|||
def get_event_loop():
|
||||
return EpollEventLoop()
|
||||
|
||||
def async(coro):
|
||||
# We don't have Task bloat, so op is null
|
||||
return coro
|
||||
|
||||
def sleep(secs):
|
||||
yield Sleep("sleep", secs)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue