Hi,
below is some code where
boost::asio::io_service::work
is added, and then immediately removed.
After that, I call async_wait on a steady_timer, but it does not work:
io.run() RETURNS IMMEDIATELY, and IGNORES the async_wait.
Is this intended?
(I was rather surprised, because I thought that the async_wait would
schedule new work, but it does not work).
If I cange the code-line
#define WEIRD_BEHAVIOUR
to
#undef WEIRD_BEHAVIOUR
then I have my expected behaviour.
Thanks,
ajneu
#include <iostream>
#include <chrono>
#include