| 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 | |
| 154 | private: |
| 155 | // Find the matching message handlers, if any, and call them. |
nothing calls this directly
no test coverage detected