mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	[3.13] gh-119121: Fix and test async.staggered.staggered_race (GH-119173) (#119206)
				
					
				
			gh-119121: Fix and test `async.staggered.staggered_race` (GH-119173)
(cherry picked from commit 16b46ebd2b)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
			
			
This commit is contained in:
		
							parent
							
								
									3b90807257
								
							
						
					
					
						commit
						3a8ab99bf7
					
				
					 3 changed files with 100 additions and 2 deletions
				
			
		|  | @ -69,8 +69,7 @@ async def staggered_race(coro_fns, delay, *, loop=None): | |||
|     exceptions = [] | ||||
|     running_tasks = [] | ||||
| 
 | ||||
|     async def run_one_coro( | ||||
|             previous_failed: typing.Optional[locks.Event]) -> None: | ||||
|     async def run_one_coro(previous_failed) -> None: | ||||
|         # Wait for the previous task to finish, or for delay seconds | ||||
|         if previous_failed is not None: | ||||
|             with contextlib.suppress(exceptions_mod.TimeoutError): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)