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.pull/11/head
rodzic
e1537df79d
commit
179d0447f1
|
@ -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