Documentation
¶
Overview ¶
Package process adapts standard-library os/exec commands to sup actors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrActorRunning is returned when Run is called while the actor is already // running a process. ErrActorRunning = errors.New("process: actor is already running") // ErrNilCommand is returned when a CommandFunc returns nil. ErrNilCommand = errors.New("process: command function returned nil") )
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct {
// contains filtered or unexported fields
}
Actor creates and runs an external command for each execution attempt. Process configuration and cancellation behavior belong to CommandFunc; the actor only adapts the command lifecycle to sup.Actor.
func NewActor ¶
func NewActor(id string, command CommandFunc) *Actor
NewActor creates a process actor with the given id and command function.
Click to show internal directories.
Click to hide internal directories.