Boost logo

Boost Users :

From: Igor R (boost.lists_at_[hidden])
Date: 2008-05-28 10:42:27


> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net