MCPcopy Create free account
hub / github.com/boostorg/asio / async_flush

Function async_flush

include/boost/asio/buffered_stream.hpp:137–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
136 std::size_t)) WriteHandler = default_completion_token_t<executor_type>>
137 auto async_flush(
138 WriteHandler&& handler = default_completion_token_t<executor_type>())
139 -> decltype(
140 declval<buffered_write_stream<Stream>&>().async_flush(
141 static_cast<WriteHandler&&>(handler)))
142 {
143 return stream_impl_.next_layer().async_flush(
144 static_cast<WriteHandler&&>(handler));
145 }
146
147 /// Write the given data to the stream. Returns the number of bytes written.
148 /// Throws an exception on failure.

Callers

nothing calls this directly

Calls 1

async_flushMethod · 0.80

Tested by

no test coverage detected