panicIfInitialized will trigger a panic if a configuration method is called after the pool has started any goroutines for the first time. In the case that new settings are needed, a new pool should be created.
()
| 107 | // after the pool has started any goroutines for the first time. In the case that |
| 108 | // new settings are needed, a new pool should be created. |
| 109 | func (p *Pool) panicIfInitialized() { |
| 110 | if p.tasks != nil { |
| 111 | panic("pool can not be reconfigured after calling Go() for the first time") |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | // WithErrors converts the pool to an ErrorPool so the submitted tasks can |
| 116 | // return errors. |
no outgoing calls
no test coverage detected