MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / py_send

Method py_send

src/python_module/src/py_context.cpp:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void 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
180caf::actor py_context::py_spawn(const py::args &xs) {
181 if (xs.size() < 1) {

Callers

nothing calls this directly

Calls 4

set_py_exceptionFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected