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

import "os/exec"

// Factory is responsible of wrapping given command into tasks worker.
type Factory interface {
	// NewWorker creates new worker process based on given process.
	NewWorker(cmd *exec.Cmd) (w *Worker, err error)

	// Close closes all open factory descriptors.
	Close() error
}