eventq

package module
v0.0.0-...-35476b4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: 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 Event

type Event struct {
	Tick int
	Func EventFunc
}

type EventFunc

type EventFunc func(ud interface{})

type Queue

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

func New

func New() *Queue

func (*Queue) Add

func (eq *Queue) Add(afterTick int, fn EventFunc)

func (*Queue) Clean

func (eq *Queue) Clean()

func (*Queue) IsEmpty

func (eq *Queue) IsEmpty() bool

func (*Queue) NextEventTick

func (eq *Queue) NextEventTick() int

func (*Queue) Print

func (eq *Queue) Print()

func (*Queue) Run

func (eq *Queue) Run(ud interface{})

func (*Queue) RunUntilEmpty

func (eq *Queue) RunUntilEmpty(ud interface{})

func (*Queue) Tick

func (eq *Queue) Tick() int

Jump to

Keyboard shortcuts

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