pausableticker

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT, BSD-2-Clause 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 {
	C <-chan time.Time // The channel on which the ticks are delivered.

	deadlock.Mutex
	// contains filtered or unexported fields
}

func New

func New(d time.Duration) *Ticker

func (*Ticker) Pause

func (t *Ticker) Pause()

func (*Ticker) Paused

func (t *Ticker) Paused() bool

func (*Ticker) Resume

func (t *Ticker) Resume()

func (*Ticker) Stop

func (t *Ticker) Stop()

func (*Ticker) Stopped

func (t *Ticker) Stopped() bool

Jump to

Keyboard shortcuts

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