Function ConnectionPool.removeUnused
Removes all currently unlocked connections from the pool.
void removeUnused
(
scope nothrow @safe void delegate(Connection conn) disconnect_callback
);
Parameters
Name | Description |
---|---|
disconnect_callback | Gets called for every removed connection to allow closing connections and freeing associated resources. |