tick

package
v11.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tick provides periodic task components for use with lifecycle.Run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Every

func Every(interval time.Duration, fn func(context.Context) error, opts ...Option) func(context.Context) error

Types

type ErrorBehavior

type ErrorBehavior int
const (
	Skip ErrorBehavior = iota
	Stop
)

type Option

type Option func(*config)

func Immediate

func Immediate() Option

func Jitter

func Jitter(d time.Duration) Option

func Label

func Label(s string) Option

func OnError

func OnError(b ErrorBehavior) Option

Jump to

Keyboard shortcuts

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