Documentation ¶ Index ¶ func Resume(state Proc, step string, data []byte) error type ForCase type Proc type ProcState type Step type Stmt type SwCase 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 } Source Files ¶ View all Source files async.go engine.go Directories ¶ Show internal Expand all Path Synopsis rewrite Click to show internal directories. Click to hide internal directories.