jittimer

package
v0.27.6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package jittimer provides a ticker, a chan that sends time on a jittered interval.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTicker

func NewTicker(ctx context.Context, d, stddev time.Duration) <-chan time.Time

NewTicker returns a chan time.Time that provides time.Time on a jittered regular interval.

The underlying time.Timer will be closed when the context.Context is Done.

Types

This section is empty.

Jump to

Keyboard shortcuts

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