Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/asio
/ main
Function
main
example/cpp11/tutorial/timer1/timer.cpp:14–24 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
12
#include <boost/asio.hpp>
13
14
int main()
15
{
16
boost::asio::io_context io;
17
18
boost::asio::steady_timer t(io, boost::asio::chrono::seconds(5));
19
t.wait();
20
21
std::cout <<
"Hello, world!"
<< std::endl;
22
23
return 0;
24
}
Callers
nothing calls this directly
Calls
1
wait
Method · 0.45
Tested by
no test coverage detected