diff options
Diffstat (limited to 'factory.go')
-rw-r--r-- | factory.go | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -4,9 +4,7 @@ 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 + // SpawnWorker creates new worker process based on given command. + // Process must not be started. + SpawnWorker(cmd *exec.Cmd) (w *Worker, err error) } |