Merge pull request #118274 from kerthcet/chore/fix-the-usage-example
Chore: fix the example about how to use PollUntilContextTimeout
This commit is contained in:
		@@ -38,7 +38,7 @@ func PollUntilContextCancel(ctx context.Context, interval time.Duration, immedia
 | 
			
		||||
// a deadline and is equivalent to:
 | 
			
		||||
//
 | 
			
		||||
//	deadlineCtx, deadlineCancel := context.WithTimeout(ctx, timeout)
 | 
			
		||||
//	err := PollUntilContextCancel(ctx, interval, immediate, condition)
 | 
			
		||||
//	err := PollUntilContextCancel(deadlineCtx, interval, immediate, condition)
 | 
			
		||||
//
 | 
			
		||||
// The deadline context will be cancelled if the Poll succeeds before the timeout, simplifying
 | 
			
		||||
// inline usage. All other behavior is identical to PollUntilContextCancel.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user