Skip to content

Consider C++20 coroutines support #127

Open

Description

@drewdzzz

We could support required operators and introduce a new method like wait that integrates with C++20 stackless coroutines - it would be enabled only if C++20 (or more modern standard) is used.

Activity

  1. CuriousGeorgiy commented on Apr 24, 2025

    @CuriousGeorgiy
    Member

    We partially touched on this in #78: I think we came to a conclusion that this is out of the scope of our library, and we should only provide the bare minimum convenient interfaces to build any execution model on top.

    I would again invite @Gerold103 to such a discussion and piggyback on his experience and serverbox.

  2. Gerold103 commented on Apr 24, 2025

    @Gerold103

    C++20 coroutines the users could just add on their own if your client has any sort of "callback" to attach to each request. Because C++20 coroutines are basically "resumable functions". Callbacks that you can continue and pause. They are isomorphic.

    In serverbox it works so easy exactly because my main execution unit there was always a callback. An std::function. Coroutines can literally be wrapped into an std::function.

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

    featureA new functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions