1 2 3 4 5 6 7 8 9 10
package roadrunner // Watcher observes pool state and decides if any worker must be destroyed. type Watcher interface { // Lock watcher on given pool instance. Attach(p Pool) Watcher // Detach pool watching. Detach() }