1
0
mirror of https://github.com/nxshock/gwp.git synced 2024-11-27 03:31:02 +05:00

Add ErrorCount() getter

This commit is contained in:
nxshock 2021-03-27 11:19:44 +05:00
parent 7c3de6635f
commit c25093e8e2

5
gwp.go
View File

@ -115,3 +115,8 @@ func (workerPool *WorkerPool) CloseAndWait() {
workerPool.printProgress()
}
// ErrorCount returns total error count
func (workerPool *WorkerPool) ErrorCount() int {
return workerPool.errorCount
}