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
d6cc1de9
Commit
d6cc1de9
authored
May 29, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
May 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #39930 from justinsb/fix_typo_multipled
Automatic merge from submit-queue typos: spelling fixes in pkg/util/wait/wait.go ```release-note NONE ```
parents
9801a7da
fd7fe79f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wait.go
staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go
+4
-4
No files found.
staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go
View file @
d6cc1de9
...
@@ -65,9 +65,9 @@ func NonSlidingUntil(f func(), period time.Duration, stopCh <-chan struct{}) {
...
@@ -65,9 +65,9 @@ func NonSlidingUntil(f func(), period time.Duration, stopCh <-chan struct{}) {
// JitterUntil loops until stop channel is closed, running f every period.
// JitterUntil loops until stop channel is closed, running f every period.
//
//
// If jitterFactor is positive, the period is jittered before every run of f.
// If jitterFactor is positive, the period is jittered before every run of f.
// If jitterFactor is not positive, the period is unchanged and not jitterd.
// If jitterFactor is not positive, the period is unchanged and not jitter
e
d.
//
//
// If slidingis true, the period is computed after f runs. If it is false then
// If sliding
is true, the period is computed after f runs. If it is false then
// period includes the runtime for f.
// period includes the runtime for f.
//
//
// Close stopCh to stop. f may not be invoked if stop channel is already
// Close stopCh to stop. f may not be invoked if stop channel is already
...
@@ -138,14 +138,14 @@ type ConditionFunc func() (done bool, err error)
...
@@ -138,14 +138,14 @@ type ConditionFunc func() (done bool, err error)
// Backoff holds parameters applied to a Backoff function.
// Backoff holds parameters applied to a Backoff function.
type
Backoff
struct
{
type
Backoff
struct
{
Duration
time
.
Duration
// the base duration
Duration
time
.
Duration
// the base duration
Factor
float64
// Duration is multipled by factor each iteration
Factor
float64
// Duration is multipl
i
ed by factor each iteration
Jitter
float64
// The amount of jitter applied each iteration
Jitter
float64
// The amount of jitter applied each iteration
Steps
int
// Exit with error after this many steps
Steps
int
// Exit with error after this many steps
}
}
// ExponentialBackoff repeats a condition check with exponential backoff.
// ExponentialBackoff repeats a condition check with exponential backoff.
//
//
// It checks the condition up to Steps times, increasing the wait by multipling
// It checks the condition up to Steps times, increasing the wait by multipl
y
ing
// the previous duration by Factor.
// the previous duration by Factor.
//
//
// If Jitter is greater than zero, a random amount of each duration is added
// If Jitter is greater than zero, a random amount of each duration is added
...
...
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