From c05e32160d4eed5abb159f14affd1c18ecd65c34 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sat, 1 Feb 2025 16:53:03 +1300 Subject: [PATCH] Documentation coverage. --- lib/async/pool/controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/async/pool/controller.rb b/lib/async/pool/controller.rb index 5ba53c1..a06946a 100644 --- a/lib/async/pool/controller.rb +++ b/lib/async/pool/controller.rb @@ -159,6 +159,7 @@ def release(resource) retire(resource) unless processed end + # Drain the pool, closing all resources. def drain Console.debug(self, "Draining pool...", size: @resources.size) @@ -168,7 +169,7 @@ def drain end end - # Close all resources in the pool. + # Drain the pool, clear all resources, and stop the gardener. def close self.drain