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

Function deadline_timer_async_result_test

test/deadline_timer.cpp:388–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388void deadline_timer_async_result_test()
389{
390 boost::asio::io_context ioc;
391 boost::asio::deadline_timer t1(ioc);
392
393 t1.expires_from_now(boost::posix_time::seconds(1));
394 int i = t1.async_wait(archetypes::lazy_handler());
395 BOOST_ASIO_CHECK(i == 42);
396
397 ioc.run();
398}
399
400boost::asio::deadline_timer make_timer(boost::asio::io_context& ioc, int* count)
401{

Callers

nothing calls this directly

Calls 4

lazy_handlerClass · 0.85
expires_from_nowMethod · 0.80
async_waitMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected