mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Chore: fix the example about how to use PollUntilContextTimeout
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
parent
bc41f37e85
commit
7d2e1888f8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user