Skip to content

C++20 Coroutines #81

@DarkWingMcQuack

Description

@DarkWingMcQuack

Is there a way to use this library with C++20 coroutines?
Would be nice to just write

    auto [res, ec] = co_await api.account_info();
    if(!ec) {
        std::cout << "account info: " << res << std::endl;
    }

asio already supports this with asio::awaitable<...> so would be awesome if this lib supports this modern C++ style

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions