binapi icon indicating copy to clipboard operation
binapi copied to clipboard

C++20 Coroutines

Open DarkWingMcQuack opened this issue 11 months ago • 0 comments

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

DarkWingMcQuack avatar Mar 14 '24 21:03 DarkWingMcQuack