Close stops the workers of the pool. No new Go() calls should be performed after calling Close(). Close does NOT wait for all jobs to finish, it is the caller's responsibility to ensure that in the provided workloads. Close is intended to be used in tests to ensure that no goroutines are leaked.
()
| 64 | // Close does NOT wait for all jobs to finish, it is the caller's responsibility to ensure that in the provided workloads. |
| 65 | // Close is intended to be used in tests to ensure that no goroutines are leaked. |
| 66 | func (p *ReusableGoroutinesPool) Close() { |
| 67 | close(p.closed) |
| 68 | } |
no outgoing calls