Skip to content

Commit

Permalink
[#8]: feat(pool): add Queuer interface to the pool interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rustatian authored Feb 19, 2022
2 parents f8605e5 + 1f8c040 commit 1a1e6c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ type Pool interface {
// Destroy all underlying stack (but let them to complete the task).
Destroy(ctx context.Context)
}

type Queuer interface {
// QueueSize can be implemented on the pool to provide the requests queue information
QueueSize() uint64
}

0 comments on commit 1a1e6c0

Please sign in to comment.