Skip to content

Commit d63d73d

Browse files
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)