cr

package
v0.0.0-...-af47be6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2016 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Continue = Command(iota)
	Close    = Command(iota)
	Idle     = Command(iota)
)

Variables

This section is empty.

Functions

func Clear

func Clear()

func PanicPath

func PanicPath() string

func Run

func Run()

func Skip

func Skip()

func Sleep

func Sleep(seconds float32)

func YieldCoroutine

func YieldCoroutine(gr *Coroutine)

func YieldUntil

func YieldUntil(done <-chan bool)

Types

type Command

type Command byte

type Coroutine

type Coroutine struct {
	State    Command
	UserData interface{}
	// contains filtered or unexported fields
}

func Start

func Start(fnc func()) *Coroutine

func (*Coroutine) WaitForCommand

func (gr *Coroutine) WaitForCommand()

Jump to

Keyboard shortcuts

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