mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +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 subprocess | ||||
| 
 | ||||
| from . import protocols | ||||
| from . import tasks | ||||
| from . import transports | ||||
| from .coroutines import coroutine | ||||
| 
 | ||||
| 
 | ||||
| class BaseSubprocessTransport(transports.SubprocessTransport): | ||||
|  | @ -65,7 +65,7 @@ def terminate(self): | |||
|     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
	
	 Victor Stinner
						Victor Stinner