periodictasks

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTasks

func RunTasks(ctx context.Context, tasks []PeriodicTask)

RunTasks immeidately begins to periodically run the passed tasks.

Types

type PeriodicTask

type PeriodicTask struct {
	Interval time.Duration
	Run      func(ctx context.Context) error
}

PeriodicTask describes a task that should be run periodically

Jump to

Keyboard shortcuts

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