async

package
v0.0.0-...-ca49f88 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resume

func Resume(state Proc, step string, data []byte) error

Types

type ForCase

type ForCase struct {
	Cond func() bool
	Do   []Stmt
}

type Proc

type Proc interface {
	Tree() *Tree
	SetProcState(ProcState)
	ProcState() ProcState
}

type ProcState

type ProcState struct {
	ResumeStep string
	ResumeData []byte
	PauseStep  string
	Resumed    bool
	Paused     bool
}

type Step

type Step struct {
	Name string
	Do   func()
	Dst  []interface{}
}

type Stmt

type Stmt struct {
	Switch []SwCase
	For    *ForCase
	Step   *Step // code that is executed and then paused. after resume "Out" is called and next statement is executed
	Do     func()
}

type SwCase

type SwCase struct {
	Cond func() bool
	Do   []Stmt
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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