repeater

package
v3.16.5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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()
}

func New added in v3.11.13

func New(
	ctx context.Context,
	task func(ctx context.Context) (err error),
	opts ...option,
) Repeater

New creates and begins to execute task periodically.

Jump to

Keyboard shortcuts

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