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

Method py_send_exit

src/python_module/src/py_context.cpp:326–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324#endif
325
326void py_context::py_send_exit(const py::args &xs) {
327 if (xs.size() < 1) {
328 set_py_exception("Too few arguments to call CAF.send_exit");
329 return;
330 }
331 auto i = xs.begin();
332 auto dest = (*i).cast<actor>();
333 ++i;
334 self_->send_exit(dest, caf::exit_reason::user_shutdown);
335}
336
337py::tuple py_context::tuple_from_message(
338 const message_id mid, const strong_actor_ptr sender, const message &msg) {

Callers

nothing calls this directly

Calls 3

set_py_exceptionFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected