Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++20 Coroutines #81

Open
DarkWingMcQuack opened this issue Mar 14, 2024 · 0 comments
Open

C++20 Coroutines #81

DarkWingMcQuack opened this issue Mar 14, 2024 · 0 comments

Comments

@DarkWingMcQuack
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant