summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-05-29 13:07:45 +0300
committerWolfy-J <[email protected]>2018-05-29 13:07:45 +0300
commit85b5288c290fd014b76c375fb9ffdf62575e2f2e (patch)
tree6046b584e15c1d515a8944df44399fde9fd77887 /pool.go
parentb8bc792b263a3891e125757a35cc563bb85f1a0b (diff)
working on tests
Diffstat (limited to 'pool.go')
-rw-r--r--pool.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/pool.go b/pool.go
index a956aabb..360b895d 100644
--- a/pool.go
+++ b/pool.go
@@ -1,14 +1,17 @@
package roadrunner
const (
- // EventCreated thrown when new worker is spawned.
- EventCreated = iota
+ // EventWorkerCreate thrown when new worker is spawned.
+ EventWorkerCreate = iota
- // EventDestruct thrown before worker destruction.
- EventDestruct
+ // EventWorkerDestruct thrown before worker destruction.
+ EventWorkerDestruct
- // EventError thrown any worker related even happen (error passed as context)
- EventError
+ // EventWorkerError thrown any worker related even happen (passed with WorkerError)
+ EventWorkerError
+
+ // EventPoolError caused on pool wide errors
+ EventPoolError
)
// Pool managed set of inner worker processes.