Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultInitDuration = 5 * time.Millisecond
View Source
const DefaultMaxDuration = 1 * time.Second
View Source
const DefaultStepTimes = 2
View Source
const ZeroDuration = 0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Delay ¶
type Delay struct { InitDuration time.Duration MaxDuration time.Duration DelayAgainHandler func(delay time.Duration) time.Duration // contains filtered or unexported fields }
func NewDefaultDelay ¶
func NewDefaultDelay() *Delay
type Timer ¶ added in v1.0.20
func (*Timer) ChanConsumed ¶ added in v1.0.20
func (t *Timer) ChanConsumed()
saw channel read, must be called after receiving value from timer chan
Click to show internal directories.
Click to hide internal directories.