scheduler

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

精度为秒

如果任务的执行时常超过间隔时常,则会开启一个新的任务

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CronForever

func CronForever(name string, startAt int64, duration int64, callback func())

startAt 第一次执行时间

func CronOnce

func CronOnce(name string, startAt int64, callback func())

func CronSpecific

func CronSpecific(name string, startAt int64, duration int64, times int32, callback func())

startAt 第一次执行时间

func Forever

func Forever(name string, duration int64, callback func())

func Now

func Now() int64

func NowFakeClear

func NowFakeClear()

func NowFakeSet

func NowFakeSet(ts int64)

func Once

func Once(name string, after int64, callback func())

func Specific

func Specific(name string, duration int64, times int32, callback func())

func Start

func Start()

Types

This section is empty.

Jump to

Keyboard shortcuts

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