Add compatibility overload for ConnectionPool.this.

See rejectedsoftware/vibe.d#1664.
This commit is contained in:
Sönke Ludwig 2017-02-01 10:27:08 +01:00
parent df4022d83e
commit 2ed82ca975
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C

View file

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