ConnectionPool.removeUnused

Removes all currently unlocked connections from the pool.

class ConnectionPool(Connection)
void
removeUnused
(
scope void delegate
(
Connection conn
)
@safe nothrow
disconnect_callback
)

Parameters

disconnect_callback void delegate
(
Connection conn
)
@safe nothrow

Gets called for every removed connection to allow closing connections and freeing associated resources.

Meta