Back to godoc.org

Package cron

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package cron can runs functions periodically.

Index

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).

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier