Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
Option represents an optional parameter.
func WithTimerProvider ¶
WithTimerProvider specifies an abstract timer implementation to use. Standard timer implementation is used by default.
type Timer ¶
type Timer interface {
Start(f func())
Stop()
}
Timer represents a back-off timer.
Start method starts/restarts the timer. The supplied function is invoked when the timer expires. Each subsequent restart increases the timeout duration.
Stop method stops the timer and resets the timeout duration back to the initial value.
Click to show internal directories.
Click to hide internal directories.