schedule

package module
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: Apache-2.0 Imports: 14 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

计划任务

编译状态 Golang质量 版本 仓库大小 最后提交 授权协议 语言个数 最佳语言 星星个数

计划任务,支持

  • Cron表达式
  • 周期任务
  • 固定时间任务
  • 随时时间任务

捐助

支持宝 微信

感谢Jetbrains

本项目通过Jetbrains开源许可IDE编写源代码,特此感谢

Jetbrains图标

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *builder

New 创建计划任务

Types

type Scheduler

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

Scheduler 任务计划组织程序

func (*Scheduler) Add

func (s *Scheduler) Add(worker worker) *addBuilder

func (*Scheduler) Clear

func (s *Scheduler) Clear()

func (*Scheduler) Contains

func (s *Scheduler) Contains(id any) (contains bool)

func (*Scheduler) Count

func (s *Scheduler) Count() int

func (*Scheduler) Remove

func (s *Scheduler) Remove() *removeBuilder

func (*Scheduler) Start

func (s *Scheduler) Start() (err error)

func (*Scheduler) Stop

func (s *Scheduler) Stop() (err error)

Jump to

Keyboard shortcuts

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