From 1f8c040bf98488486e365a014d4af182ab63334f Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Sat, 19 Feb 2022 15:18:41 +0300 Subject: [PATCH] Add Queuer interface to the pool interfaces Signed-off-by: Valery Piashchynski --- pool/pool.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pool/pool.go b/pool/pool.go index 7aa9e30..05b188c 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -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 +}