package roadrunner
import "os/exec"
// Factory is responsible of wrapping given command into tasks worker.
type Factory interface {
// SpawnWorker creates new worker process based on given command.
// Process must not be started.
SpawnWorker(cmd *exec.Cmd) (w *Worker, err error)
}
|