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

Function main

example/cpp14/deferred/deferred_4.cpp:41–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41int main()
42{
43 boost::asio::io_context ctx;
44
45 boost::asio::steady_timer timer(ctx);
46 timer.expires_after(std::chrono::seconds(1));
47
48 async_wait_twice(
49 timer,
50 [](int result)
51 {
52 std::cout << "result is " << result << "\n";
53 }
54 );
55
56 ctx.run();
57
58 return 0;
59}

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