release references to resources in pool.
This commit is contained in:
parent
598aca50af
commit
dbf7c94ef4
|
@ -18,6 +18,8 @@ module DB
|
||||||
# close all resources in the pool
|
# close all resources in the pool
|
||||||
def close : Nil
|
def close : Nil
|
||||||
@total.each &.close
|
@total.each &.close
|
||||||
|
@total.clear
|
||||||
|
@available.clear
|
||||||
end
|
end
|
||||||
|
|
||||||
def checkout : T
|
def checkout : T
|
||||||
|
|
Loading…
Reference in New Issue