Content-Length: 254738 | pFad | http://github.com/micropython/micropython-lib/commit/d63d73d9fb42bcee7ccaf55f223d83e0fe8ffe80

C4 asyncio: Add asyncio.async() dummy factory function. · micropython/micropython-lib@d63d73d · GitHub
Skip to content

Commit d63d73d

Browse files
author
Paul Sokolovsky
committed
asyncio: Add asyncio.async() dummy factory function.
Not Task bloat implemented (so far?), so just identity function for CPython compatibility.
1 parent aff251b commit d63d73d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

asyncio/asyncio.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ def __init__(self, obj):
160160
def get_event_loop():
161161
return EpollEventLoop()
162162

163+
def async(coro):
164+
# We don't have Task bloat, so op is null
165+
return coro
166+
163167
def sleep(secs):
164168
yield Sleep("sleep", secs)
165169

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/micropython/micropython-lib/commit/d63d73d9fb42bcee7ccaf55f223d83e0fe8ffe80

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy