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

Function main

example/cpp14/deferred/deferred_3.cpp:33–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33int main()
34{
35 boost::asio::io_context ctx;
36
37 boost::asio::steady_timer timer(ctx);
38 timer.expires_after(std::chrono::seconds(1));
39
40 async_wait_twice(
41 timer,
42 [](boost::system::error_code ec)
43 {
44 std::cout << "second timer wait finished: " << ec.message() << "\n";
45 }
46 );
47
48 ctx.run();
49
50 return 0;
51}

Callers

nothing calls this directly

Calls 3

async_wait_twiceFunction · 0.70
expires_afterMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected