meter

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: BlueOak-1.0.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelayedRelay

func DelayedRelay(ctx context.Context, minDelay time.Duration, n int) (out <-chan error, in chan<- error)

DelayedRelay creates a simple error signal pipeline that delays and aggregates the relaying of nil errors. Non-nil errors received on the in channel are immediately sent on the out channel without delay. If a nil error arrives within minDelay of the previous one, it will be scheduled for later to respect the configured delay. If multiple arrive within minDelay, they will be grouped into a single delayed signal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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