cron

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher[T any] interface {
	// AddTask return func to remove task
	AddTask(r T, expr *cronexpr.Expression, location *time.Location) func()

	Shutdown()

	// GetReadyTask get ready task chain
	GetReadyTask() <-chan T
}

func NewDispatcher

func NewDispatcher[T any](logger *slog.Logger) Dispatcher[T]

Jump to

Keyboard shortcuts

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