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:
parent
aba812a470
commit
a43e9e76b2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user