mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Issue #10673: Document that Process.exitcode can be used to determine timeout
Patch by Tom Clark.
This commit is contained in:
		
							parent
							
								
									8b6b50814e
								
							
						
					
					
						commit
						a24d2d8274
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -496,6 +496,9 @@ The :mod:`multiprocessing` package mostly replicates the API of the
 | 
			
		|||
      If the optional argument *timeout* is ``None`` (the default), the method
 | 
			
		||||
      blocks until the process whose :meth:`join` method is called terminates.
 | 
			
		||||
      If *timeout* is a positive number, it blocks at most *timeout* seconds.
 | 
			
		||||
      Note that the method returns ``None`` if its process terminates or if the
 | 
			
		||||
      method times out.  Check the process's :attr:`exitcode` to determine if
 | 
			
		||||
      it terminated.
 | 
			
		||||
 | 
			
		||||
      A process can be joined many times.
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue