Skip to content

Commit c05e321

Browse files
committed
Documentation coverage.
1 parent d54a680 commit c05e321

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/async/pool/controller.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def release(resource)
159159
retire(resource) unless processed
160160
end
161161

162+
# Drain the pool, closing all resources.
162163
def drain
163164
Console.debug(self, "Draining pool...", size: @resources.size)
164165

@@ -168,7 +169,7 @@ def drain
168169
end
169170
end
170171

171-
# Close all resources in the pool.
172+
# Drain the pool, clear all resources, and stop the gardener.
172173
def close
173174
self.drain
174175

0 commit comments

Comments
 (0)