WithFirstError configures the pool to only return the first error returned by a task. By default, Wait() will return a combined error.
()
| 62 | // WithFirstError configures the pool to only return the first error |
| 63 | // returned by a task. By default, Wait() will return a combined error. |
| 64 | func (p *ResultErrorPool[T]) WithFirstError() *ResultErrorPool[T] { |
| 65 | p.panicIfInitialized() |
| 66 | p.errorPool.WithFirstError() |
| 67 | return p |
| 68 | } |
| 69 | |
| 70 | // WithMaxGoroutines limits the number of goroutines in a pool. |
| 71 | // Defaults to unlimited. Panics if n < 1. |
nothing calls this directly
no test coverage detected