internal

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseTimer

func CloseTimer(timer *time.Timer, drained *bool)

closeTimer should be used as a deferred function in order to cleanly shut down a timer

func NewTimer

func NewTimer(duration time.Duration) (t *time.Timer, drained bool)

func ResetTimer

func ResetTimer(timer *time.Timer, duration time.Duration, drained *bool)

resetTimer sets drained to false after resetting the timer.

Types

type BackoffFunc

type BackoffFunc func(retry int) (sleep time.Duration)

func NewBackoffPolicy

func NewBackoffPolicy(mind, maxd time.Duration) BackoffFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL