Hey Guodong, Have you seen the comments on defer.hpp?
// The defer mechanism is very similar to the dispatch mechanism (see // dispatch.hpp), however, rather than scheduling the method to get // invoked, the defer mechanism returns a 'Deferred' object that when // invoked does the underlying dispatch. Make sense? Let me know if you need more explanation. On Thu, Jul 18, 2013 at 2:56 AM, 王国栋 <[email protected]> wrote: > Hey guys, > > I am trying to understand the logic of libprocess. > > In my mind, delay means that we can schedule an specific callback in the > future. > But I am confused about the meaning of "defer". > > Could you please explain the meaning of defer ? I can see a lot of "defer" > are used to add OnAny callbacks. Why not use the tr1:bind or tr1:function > directly? > > Many Thanks. > > > Guodong >
