Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ var (
}()
)

// basePool is the base interface for all pool types.
type basePool interface {
// BasePool defines methods common to all pool types.
type BasePool interface {
// Returns the number of worker goroutines that are currently active (executing a task) in the pool.
RunningWorkers() int64

Expand Down Expand Up @@ -94,7 +94,7 @@ type basePool interface {

// Represents a pool of goroutines that can execute tasks concurrently.
type Pool interface {
basePool
BasePool

// Submits a task to the pool without waiting for it to complete.
// The pool will not accept new tasks after it has been stopped.
Expand Down
2 changes: 1 addition & 1 deletion result.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

// ResultPool is a pool that can be used to submit tasks that return a result.
type ResultPool[R any] interface {
basePool
BasePool

// Submits a task to the pool and returns a future that can be used to wait for the task to complete and get the result.
// The pool will not accept new tasks after it has been stopped.
Expand Down
Loading