repeater

package
v3.5.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repeater

type Repeater interface {
	Stop()
	Force()
}

func NewRepeater

func NewRepeater(ctx context.Context, interval time.Duration, task func(ctx context.Context), onDone func()) Repeater

NewRepeater 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