summaryrefslogtreecommitdiff
path: root/factory.go
blob: 7389640676f77bcb0c9ce8581f85f9572eb322dc (plain)
1
2
3
4
5
6
7
8
9
10
package roadrunner

import "os/exec"

// Pool 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)
}