Add compatibility overload for ConnectionPool.this.
See rejectedsoftware/vibe.d#1664.
This commit is contained in:
parent
df4022d83e
commit
2ed82ca975
|
@ -44,6 +44,12 @@ class ConnectionPool(Connection)
|
||||||
debug m_thread = () @trusted { return Thread.getThis(); } ();
|
debug m_thread = () @trusted { return Thread.getThis(); } ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deprecated("Use an @safe callback instead")
|
||||||
|
this(Connection delegate() connection_factory, uint max_concurrent = uint.max)
|
||||||
|
@system {
|
||||||
|
this(cast(Connection delegate() @safe)connection_factory, max_concurrent);
|
||||||
|
}
|
||||||
|
|
||||||
/** Determines the maximum number of concurrently open connections.
|
/** Determines the maximum number of concurrently open connections.
|
||||||
|
|
||||||
Attempting to lock more connections that this number will cause the
|
Attempting to lock more connections that this number will cause the
|
||||||
|
|
Loading…
Reference in a new issue