コード例 #1
0
void test_websocket_client::receive(std::function<void(std::string, std::exception_ptr)> callback)
{
    pplx::create_task([callback, this]()
        {
            m_receive_function(callback);
        });
}
コード例 #2
0
pplx::task<std::string> test_websocket_client::receive()
{
    return m_receive_function();
}