Skip to content

Commit

Permalink
[standard]refine the comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
vistart committed Jun 13, 2024
1 parent 254e702 commit 83790e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/standard/worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if result.Err != nil {
Adjust the number of workers in the pool:

```go
err := pool.Resize(10)
err := pool.Resize(5, true) // Resize to 5 workers, stop busy workers
if err != nil {
fmt.Println("Resize error:", err)
}
Expand Down
2 changes: 2 additions & 0 deletions workflow/standard/worker/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Use of this source code is governed by Apache-2.0 license
// that can be found in the LICENSE file.

// Package worker provides a robust and efficient worker pool implementation.
// It supports dynamic resizing of the pool, task submission, worker metrics tracking, and graceful shutdown.
package worker

import (
Expand Down

0 comments on commit 83790e9

Please sign in to comment.