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

Method testAwaitableCompiles

test/beast/websocket/write.cpp:839–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837
838#if BOOST_ASIO_HAS_CO_AWAIT
839 void testAwaitableCompiles(
840 stream<test::stream>& s,
841 net::mutable_buffer buf,
842 bool fin)
843 {
844 static_assert(std::is_same_v<
845 net::awaitable<std::size_t>, decltype(
846 s.async_write(buf, net::use_awaitable))>);
847
848 static_assert(std::is_same_v<
849 net::awaitable<std::size_t>, decltype(
850 s.async_write_some(fin, buf, net::use_awaitable))>);
851 }
852#endif
853
854 void

Callers

nothing calls this directly

Calls 1

async_write_someMethod · 0.80

Tested by

no test coverage detected