mticker

package
v1.7.3-node-finder Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

source: https://justapengu.in/blog/ticker

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutableTicker

type MutableTicker struct {

	// C is a read only channel
	C <-chan time.Time
	// contains filtered or unexported fields
}

MutableTicker is a time.Ticker which can change update intervals

func NewMutableTicker

func NewMutableTicker(t time.Duration) *MutableTicker

NewMutableTicker provides a ticker with an interval which can be changed

func (*MutableTicker) Stop

func (m *MutableTicker) Stop()

Stop the Ticker.

func (*MutableTicker) UpdateInterval

func (m *MutableTicker) UpdateInterval(t time.Duration)

UpdateInterval modifies the interval of the Ticker.

Jump to

Keyboard shortcuts

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