timer

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2016 License: Apache-2.0 Imports: 2 Imported by: 227

README

goTimer

Timer framework in Golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCallback

func AddCallback(t time.Duration, callback CallbackFunc)

Add a callback which will be called after specified duration

func AddTimer

func AddTimer(t time.Duration, callback CallbackFunc)

Add a timer which calls callback periodly

func StartTicks

func StartTicks(tickInterval time.Duration)

Start the self-ticking routine, which ticks per tickInterval

func Tick

func Tick()

Tick once for timers

Types

type CallbackFunc

type CallbackFunc func()

Type of callback function

Jump to

Keyboard shortcuts

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