ticker

package
v0.13.58 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ticker

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

func New

func New(ctx context.Context, every time.Duration, run func(ctx context.Context, status string, count int)) *Ticker

func (*Ticker) Count

func (t *Ticker) Count() int

func (*Ticker) GetStatus

func (t *Ticker) GetStatus() string

func (*Ticker) SetStatus

func (t *Ticker) SetStatus(status string)

func (*Ticker) Stop

func (t *Ticker) Stop()

Jump to

Keyboard shortcuts

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