Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoRetryWithTimeout ¶
func DoRetryWithTimeout(t func() (interface{}, bool, error), timeout, timeBeforeRetry time.Duration) (interface{}, error)
DoRetryWithTimeout performs given task with given timeout and timeBeforeRetry TODO(stgleb): In future I would like to add context as a first param to this function so calling code can cancel task.
Types ¶
type ErrTimedOut ¶
type ErrTimedOut struct { // Reason is the reason for the timeout Reason string }
ErrTimedOut is returned when an operation times out Is this type used anywhere? If not we can get rid off it in favor context.DeadlineExceeded
func (*ErrTimedOut) Error ¶
func (e *ErrTimedOut) Error() string
Click to show internal directories.
Click to hide internal directories.