Skip to content

Commit

Permalink
update readme to reflect the latest example
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-ng committed Nov 27, 2020
1 parent 4b549d8 commit 0d68665
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ Below are some examples of using this library. To run real examples , please che
defer wg.Done()
ctx := context.Background()
nl.Wait(ctx)
fmt.Println("executing action....: ", index, nl.Count())
fmt.Println("executing action...: ", "index: ", index, "current number of goroutines: ", nl.Count())
nl.Finish()
fmt.Println("finished action...: ", index)
}(i)
}
wg.Wait()
Expand All @@ -76,9 +75,8 @@ Below are some examples of using this library. To run real examples , please che
} else {
pr.Wait(ctx, priority.Low)
}
fmt.Println("executing action...: ", index, pr.Count())
fmt.Println("executing action...: ", "index: ", index, "current number of goroutines: ", pr.Count())
pr.Finish()
fmt.Println("finished action....: ", index)
}(i)
}
wg.Wait()
Expand Down

0 comments on commit 0d68665

Please sign in to comment.