Documentation ¶
Overview ¶
Package g0 facilitates launch, management and execution of goroutines
Index ¶
- Variables
- func NewGo(errorReceiver func(err error), add func(delta int), done func(err *error), ...) (g0 parl.Go)
- func NewGoError(err error, source parl.GoErrorSource, goer parl.Goer) (goError parl.GoError)
- func NewGoGroup(ctx context.Context) (goCreator parl.GoGroup)
- func NewGoSub(g0 parl.Go) (subGo parl.SubGo)
- func NewGoer(conduit parl.ErrorConduit, exitAction parl.ExitAction, index parl.GoIndex, ...) (goer parl.Goer)
- func NewGoerGroup(ctx context.Context) (goer parl.Goer)
- type Go
- type GoErrorDo
- type GoGroup
- func (gc *GoGroup) Add(conduit parl.ErrorConduit, exitAction parl.ExitAction) (goer parl.Goer)
- func (we *GoGroup) Ch() (ch <-chan parl.GoError)
- func (we *GoGroup) IsExit() (isExit bool)
- func (gc *GoGroup) String() (s string)
- func (we *GoGroup) Wait()
- func (gc *GoGroup) WaitPeriod(duration ...time.Duration)
- type Goer
- type GoerGroup
- type SubGo
Constants ¶
This section is empty.
Variables ¶
View Source
var GoGroupFactory parl.GoGroupFactory = &goGroupFactory{}
View Source
var GoerFactory parl.GoerFactory = &goerFactory{}
View Source
var Index goerIndex
Functions ¶
func NewGoError ¶
func NewGoer ¶
func NewGoer( conduit parl.ErrorConduit, exitAction parl.ExitAction, index parl.GoIndex, gc *GoGroup, parentID parl.ThreadID, addLocation *pruntime.CodeLocation) (goer parl.Goer)
Types ¶
type GoErrorDo ¶
type GoErrorDo struct {
// contains filtered or unexported fields
}
func (*GoErrorDo) Source ¶
func (ge *GoErrorDo) Source() (source parl.GoErrorSource)
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) WaitPeriod ¶ added in v0.4.19
type Goer ¶ added in v0.4.21
type Goer struct { GoerGroup // Ch() IsExit() Wait() Cancel() Context() // contains filtered or unexported fields }
func (*Goer) String ¶ added in v0.4.21
String outputs: #[index] [waitcount]([adds]): —lines: #[Goer-index] [waitcount]([adds]) ID: [thread-ID or parent-thread-ID] [create location].
index is a main-invocation-unique numeric identifier for the Goer. waitcount is the oustanding number of done invocations for the Goer. adds is the number of adds invoked for the Goer.
type GoerGroup ¶ added in v0.4.19
type GoerGroup struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.