asyncio: sync with Tulip, add a new asyncio.coroutines module

This commit is contained in:
Victor Stinner 2014-06-29 00:46:45 +02:00
parent 61f32cb5b8
commit f951d28ac8
12 changed files with 221 additions and 199 deletions

View file

@ -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()