MCPcopy Create free account
hub / github.com/boostorg/asio / tail_send

Method tail_send

example/cpp14/executors/actor.cpp:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 // Send a message from within a message handler.
143 template <class Message>
144 void tail_send(Message msg, actor_address to)
145 {
146 // Execute the message handler in the context of the target's executor.
147 defer(to->executor_,
148 [=, msg=std::move(msg), from=this]
149 {
150 to->call_handler(std::move(msg), from);
151 });
152 }
153
154private:
155 // Find the matching message handlers, if any, and call them.

Callers

nothing calls this directly

Calls 2

deferFunction · 0.50
call_handlerMethod · 0.45

Tested by

no test coverage detected