cron

package
v0.0.0-...-7bf56e6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cron can runs functions periodically.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Group

func Group(ctx context.Context, replicas int, minInterval time.Duration, f func(ctx context.Context, replica int) error)

Group runs multiple cron jobs concurrently. See also Run function.

func Run

func Run(ctx context.Context, minInterval time.Duration, f func(context.Context) error)

Run runs f repeatedly, until the context is cancelled.

Ensures f is not called too often (minInterval).

Types

This section is empty.

Jump to

Keyboard shortcuts

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