concurrent

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DailyOnce

type DailyOnce struct {
	// contains filtered or unexported fields
}

func NewDailyOnce

func NewDailyOnce() *DailyOnce

func (*DailyOnce) Do

func (d *DailyOnce) Do(initFunc func())

获取数据(自动处理每日重置)

type PeriodOnce

type PeriodOnce struct {
	// contains filtered or unexported fields
}

func CreatePeriodOnce

func CreatePeriodOnce(hour, minute int) (*PeriodOnce, error)

func (*PeriodOnce) Do

func (o *PeriodOnce) Do(f func())

Jump to

Keyboard shortcuts

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