boost::capy::any_buffer_sink::write_eof

Signal end‐of‐stream.

Synopsis

auto
write_eof();

Description

Indicates that no more data will be written to the sink. This method satisfies the WriteSink concept.

When the wrapped type provides native WriteSink support, the underlying write_eof() is called. Otherwise the operation is implemented as commit_eof(0).

Preconditions

The wrapper must contain a valid sink (has_value() == true).

Return Value

An awaitable yielding (error_code).

Created with MrDocs