MCPcopy Create free account
hub / github.com/boostorg/beast / testAwaitableCompiles

Method testAwaitableCompiles

test/beast/core/flat_stream.cpp:215–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214#if BOOST_ASIO_HAS_CO_AWAIT
215 void testAwaitableCompiles(
216 flat_stream<test::stream>& stream,
217 net::mutable_buffer rxbuf,
218 net::const_buffer txbuf)
219 {
220 static_assert(std::is_same_v<
221 net::awaitable<std::size_t>, decltype(
222 stream.async_read_some(rxbuf, net::use_awaitable))>);
223
224 static_assert(std::is_same_v<
225 net::awaitable<std::size_t>, decltype(
226 stream.async_write_some(txbuf, net::use_awaitable))>);
227 }
228#endif
229
230 void

Callers

nothing calls this directly

Calls 2

async_read_someMethod · 0.80
async_write_someMethod · 0.80

Tested by

no test coverage detected