mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +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
|
@ -2,8 +2,8 @@ import collections
|
|||
import subprocess
|
||||
|
||||
from . import protocols
|
||||
from . import tasks
|
||||
from . import transports
|
||||
from .coroutines import coroutine
|
||||
|
||||
|
||||
class BaseSubprocessTransport(transports.SubprocessTransport):
|
||||
|
@ -65,7 +65,7 @@ class BaseSubprocessTransport(transports.SubprocessTransport):
|
|||
def kill(self):
|
||||
self._proc.kill()
|
||||
|
||||
@tasks.coroutine
|
||||
@coroutine
|
||||
def _post_init(self):
|
||||
proc = self._proc
|
||||
loop = self._loop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue