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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy