From c25093e8e29c489008b153938e86a6913b61734b Mon Sep 17 00:00:00 2001 From: nxshock Date: Sat, 27 Mar 2021 11:19:44 +0500 Subject: [PATCH] Add ErrorCount() getter --- gwp.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gwp.go b/gwp.go index 8d459c1..dea1a3d 100644 --- a/gwp.go +++ b/gwp.go @@ -115,3 +115,8 @@ func (workerPool *WorkerPool) CloseAndWait() { workerPool.printProgress() } + +// ErrorCount returns total error count +func (workerPool *WorkerPool) ErrorCount() int { + return workerPool.errorCount +}