asio C++ library

PrevUpHomeNext

experimental::coro::operator()

Operator used for coroutines with input value.

template<
    detail::convertible_to< input_type > T>
auto operator()(
    T && ip);
Parameters

ip

The input value

Return Value

An awaitable handle.

coro<void> push_values(coro<double(int)> c)
{
   std::optional<double> res = co_await c(42);
}

PrevUpHomeNext