You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connector/NET exposes a MySqlConnection.CloseAsync API (albeit implemented synchronously).
We could add the same API for clients who want to close the connection asynchronously; however note that in most cases this is just returning the connection to the pool, which is a synchronous operation (so CloseAsync would just add overhead).
The text was updated successfully, but these errors were encountered:
Since it isn't an asynchronous operation, is not part of ADO.NET DbConnection's interface, and is needed only for backwards compatibility with Connector/NET, I think CloseAsync is better to be implemented as an extension, maybe even in a separate package.
Connector/NET exposes a
MySqlConnection.CloseAsync
API (albeit implemented synchronously).We could add the same API for clients who want to close the connection asynchronously; however note that in most cases this is just returning the connection to the pool, which is a synchronous operation (so
CloseAsync
would just add overhead).The text was updated successfully, but these errors were encountered: