ResultErrorPool is a pool that executes tasks that return a generic result type and an error. Tasks are executed in the pool with Go(), then the results of the tasks are returned by Wait(). The order of the results is not guaranteed to be the same as the order the tasks were submitted. If your use
| 15 | // The configuration methods (With*) will panic if they are used after calling |
| 16 | // Go() for the first time. |
| 17 | type ResultErrorPool[T any] struct { |
| 18 | errorPool ErrorPool |
| 19 | agg resultAggregator[T] |
| 20 | collectErrored bool |
| 21 | } |
| 22 | |
| 23 | // Go submits a task to the pool. If all goroutines in the pool |
| 24 | // are busy, a call to Go() will block until the task can be started. |
nothing calls this directly
no outgoing calls
no test coverage detected