summaryrefslogtreecommitdiff
path: root/factory.go
blob: 7d20016c02a5910c609751998b9d9e6b08bc74df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)

	// Close the factory and underlying connections.
	Close() error
}