Skip to content

Drop the async_ prefix from connection functions #393

Open

Description

@mzimbres

I don't see a reason to keep them anymore. The connection will never provide sync functions to there won't be any confusion.

co_await conn.run(cfg);
co_await conn.exec(req, resp);
co_await conn.receive();

Look cleaner too.

Activity

  1. anarthal commented on Feb 5, 2026

    @anarthal
    Collaborator

    We'd need to deprecate the async_ ones. Do you think this adds enough value? Also, receive is currently in use by a deprecated function.

  2. mzimbres commented on Feb 22, 2026

    @mzimbres
    CollaboratorAuthor

    Do you think this adds enough value?

    It does not bring any new functionality to users of course, but I value a lot code that is not verbose, where naming is short and to the point (take linux syscalls naming as an example). I also don't wan't users wondering where is the sync counterpart of each async function. Also, if we port it to Corosio, the same naming should be used.

    Also, receive is currently in use by a deprecated function.

    Receive was never a good name anyway, we could take the opportunity and name it wait_push.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions