Boost C++ Libraries: Ticket #6679: [asio] request : repeat timer https://svn.boost.org/trac10/ticket/6679 <p> This ticket is feature request. I want repeat feature in deadline_timer/waitable_timer. Many libraries timer have repeat features. follow code is example. </p> <p> before: </p> <pre class="wiki">void on_timer(error_code error, steady_timer&amp; timer) { if (error) return; timer.expires_from_now(seconds(1)); timer.async_wait(boost::bind(&amp;on_timer, _1, boost::ref(timer))); } int main() { ... timer.expires_from_now(seconds(1)); timer.async_wait(boost::bind(&amp;on_timer, _1, boost::ref(timer))); } </pre><p> after: </p> <pre class="wiki">void on_timer(error_code error, steady_timer&amp; timer) { if (error) return; // no boiler plate } int main() { ... timer.expires_from_now(seconds(1), steady_timer::repeat); timer.async_wait(boost::bind(&amp;on_timer, _1, boost::ref(timer))); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6679 Trac 1.4.3