MySqlConnection.ClearPoolAsync method
Asynchronously clears the connection pool that connection belongs to.
public static Task ClearPoolAsync(MySqlConnection connection,
CancellationToken cancellationToken = default)
parameter | description |
---|---|
connection | The MySqlConnection whose connection pool will be cleared. |
cancellationToken | A token to cancel the asynchronous operation. |
Return Value
A Task representing the asynchronous operation.
See Also
- class MySqlConnection
- namespace MySqlConnector
- assembly MySqlConnector