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

Update README forworker.SetEstimateCount()

This commit is contained in:
nxshock 2022-08-06 22:17:35 +05:00
parent aba812a470
commit a43e9e76b2

View File

@ -28,11 +28,11 @@ func f(i int) error {
func main() { 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.ShowProgress = true // Enable progress indicator
worker.ShowSpeed = true // Show processing speed in progress indicator worker.ShowSpeed = true // Show processing speed in progress indicator
worker.EstimateCount = 100 // Set total number on jobs to calculate ETA worker.SetEstimateCount(100) // Set total number on jobs to calculate ETA
for i := 0; i < 100; i++ { for i := 0; i < 100; i++ {
n := i n := i