Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constructor ¶
Constructor returns a function to start for the given key. If nil is returned, skips starting that routine.
type Keyed ¶
type Keyed struct {
// contains filtered or unexported fields
}
Keyed manages a set of goroutines with associated Keys.
func NewKeyed ¶
func NewKeyed(ctorCb Constructor) *Keyed
NewKeyed constructs a new Keyed execution manager. Note: routines won't start until SetContext is called.
func (*Keyed) SetContext ¶
SetContext updates the root context, restarting all running routines. if restart is true, all errored routines also restart
Click to show internal directories.
Click to hide internal directories.