repeater

package
v3.49.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v3.11.13

func New(
	interval time.Duration,
	task func(ctx context.Context) (err error),
	opts ...option,
) *repeater

New creates and begins to execute task periodically.

func WithClock added in v3.26.0

func WithClock(clock clockwork.Clock) option

func WithInterval added in v3.11.13

func WithInterval(interval time.Duration) option

func WithName added in v3.11.13

func WithName(name string) option

func WithTrace added in v3.11.13

func WithTrace(trace *trace.Driver) option

Types

type Repeater

type Repeater interface {
	Stop()
	Force()
}

Jump to

Keyboard shortcuts

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