gcron

package
v1.0.113 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackgroundExecuteWithInterval added in v1.0.110

func BackgroundExecuteWithInterval(execution func(), duration time.Duration, done <-chan struct{})

BackgroundExecuteWithInterval 启动后台执行函数,每隔 duration 执行一次,并在后台独立运行,不阻塞主进程

func ForegroundExecuteWithInterval added in v1.0.110

func ForegroundExecuteWithInterval(execution func(), duration time.Duration)

ForegroundExecuteWithInterval 执行函数,并每隔 duration 执行一次,阻塞进程执行

Types

This section is empty.

Jump to

Keyboard shortcuts

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