Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetryWorker ¶
func RetryWorker( interval time.Duration, timeout time.Duration, tick RetryTicker, f func() (bool, error)) error
RetryWorker calls ConditionFunc until either: * it returns boolean true * a timeout expires * an error occurs
Types ¶
type RetryTicker ¶
type RetryTicker interface { Stop() Tick() }
RetryTicker is a wrapper aroung time.Tick, that allows to mock its implementation
Click to show internal directories.
Click to hide internal directories.