mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Issue #20950: Fix typo asyncio doc, wait() has no self parameter
self parameter is implicit. Mention also that communicate() and wait() are coroutines.
This commit is contained in:
		
							parent
							
								
									fca286601b
								
							
						
					
					
						commit
						7bdf786e74
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -107,6 +107,8 @@ Process
 | 
				
			||||||
         The data read is buffered in memory, so do not use this method if the
 | 
					         The data read is buffered in memory, so do not use this method if the
 | 
				
			||||||
         data size is large or unlimited.
 | 
					         data size is large or unlimited.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      This method is a :ref:`coroutine <coroutine>`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   .. method:: kill()
 | 
					   .. method:: kill()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Kills the child. On Posix OSs the function sends :py:data:`SIGKILL` to
 | 
					      Kills the child. On Posix OSs the function sends :py:data:`SIGKILL` to
 | 
				
			||||||
| 
						 | 
					@ -129,11 +131,13 @@ Process
 | 
				
			||||||
      to the child. On Windows the Win32 API function
 | 
					      to the child. On Windows the Win32 API function
 | 
				
			||||||
      :c:func:`TerminateProcess` is called to stop the child.
 | 
					      :c:func:`TerminateProcess` is called to stop the child.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   .. method:: wait(self):
 | 
					   .. method:: wait():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Wait for child process to terminate.  Set and return :attr:`returncode`
 | 
					      Wait for child process to terminate.  Set and return :attr:`returncode`
 | 
				
			||||||
      attribute.
 | 
					      attribute.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      This method is a :ref:`coroutine <coroutine>`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Example
 | 
					Example
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue