Open arbrsts opened 6 months ago
Added a full main method example snippet to the Timer.5 tutorial to ensure the source code can be replicated and compiled successfully like the other Boost Asio tutorial examples without having to reference the full source listing page.
``''''''``int main() ``''''''``{ ``''''''`` asio::io_context io; ``''''''`` printer p(io); ``''''''`` std::thread t([&]{ io.run(); }); ``''''''`` io.run(); ``''''''`` t.join(); ``''''''`` ``''''''`` return 0; ``''''''`` }
Added a full main method example snippet to the Timer.5 tutorial to ensure the source code can be replicated and compiled successfully like the other Boost Asio tutorial examples without having to reference the full source listing page.