Skip to content

Commit

Permalink
feat: add Responses() method
Browse files Browse the repository at this point in the history
  • Loading branch information
proullon committed May 14, 2020
1 parent 5e458e9 commit 3e091d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions workerpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ func New(jobfnc JobFnc, opts ...OptFunc) (*WorkerPool, error) {
return wp, nil
}

// Responses returns Response channel containing all Job returned values
func (wp *WorkerPool) Responses() chan Response {
return wp.ReturnChannel
}

// VelocityValues returns map of recorded velocity for each used velocity percentil
func (wp *WorkerPool) VelocityValues() map[int]float64 {
c := make(map[int]float64)
Expand Down

0 comments on commit 3e091d5

Please sign in to comment.