package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Jul 21, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ErrCanceled is used to cancel the retry process.
Retry creates a shortcut retry function for later easier reuse.
Retrier is a simple retry implemention.
New creates a Retrier, the backoff increment is not exponential,
it is a random value.
Run runs the RetryFunc until success or excceed the max retry times.
type RetryFunc func() error
RetryFunc is a type which used for Retrier.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.