g0

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: ISC Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoGroupFactory parl.GoGroupFactory = &goCreatorFactory{}
View Source
var GoerGroupFactory parl.GoerGroupFactory = &goerFactory{}

Functions

func NewGo

func NewGo(
	errorReceiver func(err error),
	add func(delta int),
	done func(err error),
	ctxFn func() (ctx context.Context)) (g0 parl.Go)

func NewGoError

func NewGoError(err error, source parl.GoErrorSource, goer parl.Goer) (goError parl.GoError)

func NewGoGroup added in v0.4.19

func NewGoGroup(ctx context.Context) (goCreator parl.GoGroup)

func NewGoSub added in v0.4.15

func NewGoSub(g0 parl.Go) (goCancel parl.SubGo)

func NewGoer

func NewGoer(
	conduit parl.ErrorConduit,
	exitAction parl.ExitAction,
	index parl.GoIndex,
	gc *GoGroup,
	parentID parl.ThreadID,
	addLocation *pruntime.CodeLocation) (goer parl.Goer)

func NewGoerGroup added in v0.4.19

func NewGoerGroup(ctx context.Context) (goer parl.GoerGroup)

Types

type GoDo

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

func (*GoDo) Add

func (g0 *GoDo) Add(delta int)

func (*GoDo) AddError

func (g0 *GoDo) AddError(err error)

func (*GoDo) Context

func (g0 *GoDo) Context() (ctx context.Context)

func (*GoDo) Done

func (g0 *GoDo) Done(errp *error)

func (*GoDo) Register

func (g0 *GoDo) Register()

func (*GoDo) SubGo added in v0.4.15

func (g0 *GoDo) SubGo() (goCancel parl.SubGo)

type GoErrorDo

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

func (*GoErrorDo) GetError

func (ge *GoErrorDo) GetError() (err error)

func (*GoErrorDo) Goer

func (ge *GoErrorDo) Goer() (goer parl.Goer)

func (*GoErrorDo) Source

func (ge *GoErrorDo) Source() (source parl.GoErrorSource)

func (*GoErrorDo) String added in v0.4.17

func (ge *GoErrorDo) String() (s string)

type GoGroup added in v0.4.19

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

func (*GoGroup) Add added in v0.4.19

func (gc *GoGroup) Add(conduit parl.ErrorConduit, exitAction parl.ExitAction) (goer parl.Goer)

func (*GoGroup) IsExit added in v0.4.19

func (gc *GoGroup) IsExit() (isExit bool)

func (*GoGroup) List added in v0.4.19

func (gc *GoGroup) List() (s string)

func (*GoGroup) Wait added in v0.4.19

func (gc *GoGroup) Wait()

func (*GoGroup) WaitPeriod added in v0.4.19

func (gc *GoGroup) WaitPeriod(duration ...time.Duration)

func (*GoGroup) Warnings added in v0.4.19

func (gc *GoGroup) Warnings() (ch <-chan parl.GoError)

type GoSub added in v0.4.15

type GoSub struct {
	parl.Go
	// contains filtered or unexported fields
}

func (*GoSub) Add added in v0.4.15

func (gc *GoSub) Add(delta int)

func (*GoSub) Cancel added in v0.4.15

func (gc *GoSub) Cancel()

func (*GoSub) Done added in v0.4.15

func (gc *GoSub) Done(errp *error)

func (*GoSub) String added in v0.4.17

func (gc *GoSub) String() (s string)

func (*GoSub) SubGo added in v0.4.15

func (gc *GoSub) SubGo() (goCancel parl.SubGo)

func (*GoSub) Wait added in v0.4.15

func (gc *GoSub) Wait()

type GoerDo

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

func (*GoerDo) Cancel added in v0.4.18

func (gr *GoerDo) Cancel()

func (*GoerDo) Ch added in v0.4.18

func (gr *GoerDo) Ch() (ch <-chan parl.GoError)

func (*GoerDo) Context added in v0.4.18

func (gr *GoerDo) Context() (ctx context.Context)

func (*GoerDo) Go

func (gr *GoerDo) Go() (g0 parl.Go)

func (*GoerDo) String

func (gr *GoerDo) String() (s string)

#[index] [waitcount] ([adds]) [thread-ID or parent-thread-ID] add: add-location # go-creator index

func (*GoerDo) Wait

func (gr *GoerDo) Wait()

type GoerGroup added in v0.4.19

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

func (*GoerGroup) AddError added in v0.4.19

func (gr *GoerGroup) AddError(err error)

func (*GoerGroup) Cancel added in v0.4.19

func (gr *GoerGroup) Cancel()

func (*GoerGroup) Ch added in v0.4.19

func (gr *GoerGroup) Ch() (ch <-chan parl.GoError)

func (*GoerGroup) Context added in v0.4.19

func (gr *GoerGroup) Context() (ctx context.Context)

func (*GoerGroup) Go added in v0.4.19

func (gr *GoerGroup) Go() (g0 parl.Go)

func (*GoerGroup) IsExit added in v0.4.19

func (gr *GoerGroup) IsExit() (isExit bool)

func (*GoerGroup) String added in v0.4.19

func (gr *GoerGroup) String() (s string)

func (*GoerGroup) Wait added in v0.4.19

func (gr *GoerGroup) Wait()

type GoerRuntime

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

Jump to

Keyboard shortcuts

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