timer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: MIT Imports: 3 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, callbackObj interface{}, context interface{}) 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() *Loop

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