mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
asyncio: sync with Tulip, add a new asyncio.coroutines module
This commit is contained in:
parent
61f32cb5b8
commit
f951d28ac8
12 changed files with 221 additions and 199 deletions
|
@ -27,6 +27,7 @@ from . import events
|
|||
from . import futures
|
||||
from . import selectors
|
||||
from . import tasks
|
||||
from .coroutines import coroutine
|
||||
|
||||
|
||||
if sys.platform == 'win32': # pragma: no cover
|
||||
|
@ -43,7 +44,7 @@ def dummy_ssl_context():
|
|||
|
||||
|
||||
def run_briefly(loop):
|
||||
@tasks.coroutine
|
||||
@coroutine
|
||||
def once():
|
||||
pass
|
||||
gen = once()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue