timer

package
v0.0.0-...-29ffec6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AfterStopper

type AfterStopper interface {
	Stop() bool
}

func After

func After(q cellnet.EventQueue, duration time.Duration, callback func()) AfterStopper

type Loop

type Loop struct {
	Context  interface{}
	Duration time.Duration

	Queue cellnet.EventQueue
	// contains filtered or unexported fields
}

func NewLoop

func NewLoop(q cellnet.EventQueue, duration time.Duration, callback func(*Loop), context interface{}) *Loop

func (*Loop) NextLoop

func (self *Loop) NextLoop()

func (*Loop) Notify

func (self *Loop) Notify()

func (*Loop) Running

func (self *Loop) Running() bool

func (*Loop) Start

func (self *Loop) Start() bool

func (*Loop) Stop

func (self *Loop) Stop()

Jump to

Keyboard shortcuts

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