mcycle

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cycle

type Cycle struct {
	Task     func()
	Interval time.Duration
	// contains filtered or unexported fields
}

func New

func New(opt Options) *Cycle

func (*Cycle) End

func (c *Cycle) End() *Cycle

func (*Cycle) SetInterval

func (c *Cycle) SetInterval(d time.Duration)

SetInterval 动态修改定时器间隔

func (*Cycle) Start

func (c *Cycle) Start() *Cycle

type Options

type Options struct {
	Task     func()
	Interval time.Duration
}

Jump to

Keyboard shortcuts

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