| 166 | } |
| 167 | |
| 168 | void py_context::py_send(const py::args &xs) { |
| 169 | if (xs.size() < 2) { |
| 170 | set_py_exception("Too few arguments to call CAF.send"); |
| 171 | return; |
| 172 | } |
| 173 | auto i = xs.begin(); |
| 174 | auto dest = (*i).cast<actor>(); |
| 175 | auto msg = py_build_message(xs); |
| 176 | if (msg) |
| 177 | self_->mail(*msg).send(dest); |
| 178 | } |
| 179 | |
| 180 | caf::actor py_context::py_spawn(const py::args &xs) { |
| 181 | if (xs.size() < 1) { |
nothing calls this directly
no test coverage detected