Skip to content

Commit

Permalink
Merge pull request #89 from deining/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
alitto authored Dec 3, 2024
2 parents d455993 + c1c0d5d commit 1ecc7cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ Each worker pool instance exposes useful metrics that can be queried through the
- `pool.RunningWorkers() int64`: Current number of running workers
- `pool.SubmittedTasks() uint64`: Total number of tasks submitted since the pool was created
- `pool.WaitingTasks() uint64`: Current number of tasks in the queue that are waiting to be executed
- `pool.SuccessfulTasks() uint64`: Total number of tasks that have successfully completed their exection since the pool was created
- `pool.SuccessfulTasks() uint64`: Total number of tasks that have successfully completed their execution since the pool was created
- `pool.FailedTasks() uint64`: Total number of tasks that completed with panic since the pool was created
- `pool.CompletedTasks() uint64`: Total number of tasks that have completed their exection either successfully or with panic since the pool was created
- `pool.CompletedTasks() uint64`: Total number of tasks that have completed their execution either successfully or with panic since the pool was created

In our [Prometheus example](./examples/prometheus/main.go) we showcase how to configure collectors for these metrics and expose them to Prometheus.

Expand Down Expand Up @@ -440,4 +440,4 @@ Here are some of the resources which have served as inspiration when writing thi

## Contribution & Support

Feel free to send a pull request if you consider there's something that should be polished or improved. Also, please open up an issue if you run into a problem when using this library or just have a question about it.
Feel free to send a pull request if you consider there's something that should be polished or improved. Also, please open up an issue if you run into a problem when using this library or just have a question about it.
2 changes: 1 addition & 1 deletion examples/pool_context/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func main() {
// Create a pool and pass the context to it.
pool := pond.NewPool(10, pond.WithContext(ctx))

// Submit several long runnning tasks
// Submit several long running tasks
var count int = 100
for i := 0; i < count; i++ {
i := i
Expand Down

0 comments on commit 1ecc7cd

Please sign in to comment.