t

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAnotherDurationWithGivenProbability

func WithAnotherDurationWithGivenProbability(duration time.Duration, probability float64) func(*UTicker)

func WithDeviation

func WithDeviation(percentage float64) func(*UTicker)

func WithExponentialBackoff

func WithExponentialBackoff(e int) func(*UTicker)

func WithExponentialBackoffCapped

func WithExponentialBackoffCapped(e int, max int) func(*UTicker)

func WithFrequency

func WithFrequency(d time.Duration) func(*UTicker)

func WithImmediateStart

func WithImmediateStart(b bool) func(*UTicker)

func WithRampCapped

func WithRampCapped(e int, max int) func(*UTicker)

func WithRandomTickIn

func WithRandomTickIn(duration time.Duration) func(*UTicker)

Types

type UTicker

type UTicker struct {
	C chan time.Time
	// contains filtered or unexported fields
}

func NewUTicker

func NewUTicker(options ...func(*UTicker)) *UTicker

func (*UTicker) Reset

func (t *UTicker) Reset(d time.Duration)

func (*UTicker) Stop

func (t *UTicker) Stop()

Jump to

Keyboard shortcuts

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