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

Method tail_send

example/cpp11/executors/actor.cpp:144–153  ·  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 actor* from = this;
148 defer(to->executor_,
149 [=]
150 {
151 to->call_handler(std::move(msg), from);
152 });
153 }
154
155private:
156 // 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