Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
6ce74e45
Commit
6ce74e45
authored
Jun 12, 2018
by
Rob Leidle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct several mistakes in the comments/doc for PollImmediate.
parent
7e41ab4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wait.go
staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go
+2
-2
No files found.
staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go
View file @
6ce74e45
...
...
@@ -230,13 +230,13 @@ func pollInternal(wait WaitFunc, condition ConditionFunc) error {
// PollImmediate tries a condition func until it returns true, an error, or the timeout
// is reached.
//
// Poll always checks 'condition' before waiting for the interval. 'condition'
// Poll
Immediate
always checks 'condition' before waiting for the interval. 'condition'
// will always be invoked at least once.
//
// Some intervals may be missed if the condition takes too long or the time
// window is too short.
//
// If you want to
Poll something forever, see Poll
Infinite.
// If you want to
immediately Poll something forever, see PollImmediate
Infinite.
func
PollImmediate
(
interval
,
timeout
time
.
Duration
,
condition
ConditionFunc
)
error
{
return
pollImmediateInternal
(
poller
(
interval
,
timeout
),
condition
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment