MCPcopy Create free account
hub / github.com/alibaba/async_simple / close

Function close

demo_example/asio/asio/basic_file.hpp:506–511  ·  view source on GitHub ↗

Close the file. * This function is used to close the file. Any asynchronous read or write * operations will be cancelled immediately, and will complete with the * asio::error::operation_aborted error. * * @throws asio::system_error Thrown on failure. Note that, even if * the function indicates an error, the underlying descriptor is closed. */

Source from the content-addressed store, hash-verified

504 * the function indicates an error, the underlying descriptor is closed.
505 */
506 void close()
507 {
508 asio::error_code ec;
509 impl_.get_service().close(impl_.get_implementation(), ec);
510 asio::detail::throw_error(ec, "close");
511 }
512
513 /// Close the file.
514 /**

Callers 4

~clientMethod · 0.50
TEST_FFunction · 0.50
Uthread_read_fileFunction · 0.50
async_read_fileFunction · 0.50

Calls 2

throw_errorFunction · 0.85
closeMethod · 0.45

Tested by 1

TEST_FFunction · 0.40