LinkMenuExpand(external link)DocumentSearchCopyCopied

MySqlConnection.ClearPoolAsync method

Asynchronously clears the connection pool that connection belongs to.

public static Task ClearPoolAsync(MySqlConnection connection, 
    CancellationToken cancellationToken = default)
parameterdescription
connectionThe MySqlConnection whose connection pool will be cleared.
cancellationTokenA token to cancel the asynchronous operation.

Return Value

A Task representing the asynchronous operation.

See Also