(pool chan chan func())
| 237 | type workerBuilder worker |
| 238 | |
| 239 | func (builder workerBuilder) withPool(pool chan chan func()) workerBuilder { |
| 240 | builder.pool = pool |
| 241 | return builder |
| 242 | } |
| 243 | func (builder workerBuilder) withPoolQuit(poolQuit <-chan struct{}) workerBuilder { |
| 244 | builder.poolQuit = poolQuit |
| 245 | return builder |