xticker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

* @Date: 2023-07-20 10:24:45 * @LastEditTime: 2023-07-20 10:24:57 * @Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fn

type Fn func() error

type MyTicker

type MyTicker struct {
	MyTick *time.Ticker
	Runner Fn
	Done   chan bool //  done channel
}

func NewTicker

func NewTicker(duration int, f Fn) *MyTicker

NewTicker ...

func (*MyTicker) Start

func (t *MyTicker) Start()

Start ...

func (*MyTicker) Stop

func (t *MyTicker) Stop()

Stop ...

Jump to

Keyboard shortcuts

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