
28 May
2008
28 May
'08
2:42 p.m.
in the main(), the async_wait() will not be invoked until the io.run() is called.
But inside the print() there is a async_wait() call. Why we don't need run() to trigger it?
The handler you supply to async_wait() will be invoked during the io_service::run() cycle. Meanwhile it's just queued.