Skip to content

Implement MySqlConnection.CloseAsync #467

Closed
Closed

Description

@bgrainger

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).

Activity

  1. sazarubin commented on Jun 3, 2018

    @sazarubin

    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.

  2. bgrainger commented on May 23, 2019

    @bgrainger
    MemberAuthor

    (so CloseAsync would just add overhead).

    This can mostly be avoided by not implementing it as an async method and instead just returning Task.CompletedTask.

  3. self-assigned this
    on Jun 28, 2019
  4. added a commit that references this issue on Jun 28, 2019
    7cad67e
  5. bgrainger commented on Sep 24, 2019

    @bgrainger
    MemberAuthor

    Added in 0.57.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions