Skip to content

Commit

Permalink
Documentation coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Feb 1, 2025
1 parent d54a680 commit c05e321
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/async/pool/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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

Expand Down

0 comments on commit c05e321

Please sign in to comment.