summaryrefslogtreecommitdiff
path: root/factory.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-23 19:51:15 -0500
committerWolfy-J <[email protected]>2018-01-23 19:51:15 -0500
commit78a42de837928cf7d10a1ae04d7e82e56d66e1e2 (patch)
tree8882b9a051bcc9c42328df583c0bb8c39a89591e /factory.go
parentfa4bd78d9f7c5f74e8445374370927c742fc4e78 (diff)
API update
Diffstat (limited to 'factory.go')
-rw-r--r--factory.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/factory.go b/factory.go
index e58d9364..97ea3a87 100644
--- a/factory.go
+++ b/factory.go
@@ -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)
}