My understanding is that the post and defer functions replace the old
asio_handler_is_continuation mechanism. See:
<http://www.boost.org/doc/libs/1_66_0/doc/html/boost_asio/net_ts.html>
Thanks
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users
post used to cause the handler to be executed some time in the future on a thread associated with the executor. It was guaranteed not to happen immediately.dispatch used to:a. if called by a thread currently associated with the executor, cause the handler to happen now.b. otherwise behave as per post.Has this really changed, or does the documentation have an error?
It really would be nice if Chris Kohlhoff (author of Boost.Asio) could
step forward and provide complete detail on how these functions are
used, including a few examples such as usage in a composed operation
implementation.
On Fri, Jan 5, 2018 at 7:53 AM, Richard Hodges via Boost-users
<boost...@lists.boost.org> wrote:
> Perhaps defer does a post
> unless the handler is a continuation? I think that would make sense.
And how would it know if the handler is a continuation?