From a43e9e76b2a77bd42c3be2277d19c5a8352dd357 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sat, 6 Aug 2022 22:17:35 +0500 Subject: [PATCH] Update README forworker.SetEstimateCount() --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fc5b387..fb72ae3 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,11 @@ func f(i int) error { func main() { - worker := gwp.New(4) // Create pool with specified number of workers + worker := gwp.New(4) // Create pool with specified number of workers - worker.ShowProgress = true // Enable progress indicator - worker.ShowSpeed = true // Show processing speed in progress indicator - worker.EstimateCount = 100 // Set total number on jobs to calculate ETA + worker.ShowProgress = true // Enable progress indicator + worker.ShowSpeed = true // Show processing speed in progress indicator + worker.SetEstimateCount(100) // Set total number on jobs to calculate ETA for i := 0; i < 100; i++ { n := i