Documentation ¶ Index ¶ func Retry(tries int, durationBetweenAttempts time.Duration, fn func() error) (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Retry ¶ func Retry(tries int, durationBetweenAttempts time.Duration, fn func() error) (err error) Retry will call 'fn' 'tries' times, waiting 'durationBetweenAttempts' between each attempt, returning 'nil' the first time that 'fn' returns nil. If 'nil' is never returned, then the final error returned by 'fn' is returned. Types ¶ This section is empty. Source Files ¶ View all Source files testing.go Click to show internal directories. Click to hide internal directories.