Help us shape the future of Go! Take the 2026 Go Developer Survey

periodic

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModeExecute

type ModeExecute int
const (
	ModeInterval   ModeExecute // 时间间隔执行
	ModeCompensate             // 时间补偿执行
	ModeConcurrent             // 定期并发
)

type PeriodicExecute

type PeriodicExecute[ITEM any] struct {
	// contains filtered or unexported fields
}

PeriodicExecute 周期性处理

func (*PeriodicExecute[ITEM]) AsyncExecute

func (pe *PeriodicExecute[ITEM]) AsyncExecute(m ModeExecute)

func (*PeriodicExecute[ITEM]) Collect

func (pe *PeriodicExecute[ITEM]) Collect(item *ITEM)

Jump to

Keyboard shortcuts

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