timer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timer

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

func NewTimer added in v0.3.0

func NewTimer() *Timer

func (*Timer) Start

func (t *Timer) Start(interval time.Duration, sync func())

func (*Timer) Stop

func (t *Timer) Stop()

Stop should be called only once. It waits for the sync function to exit before returning

Jump to

Keyboard shortcuts

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