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

Method py_request

src/python_module/src/py_context.cpp:306–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304#endif
305
306uint64_t py_context::py_request(const py::args &xs) {
307 if (xs.size() < 2) {
308 set_py_exception("Too few arguments to call CAF.request");
309 return 0;
310 }
311 auto i = xs.begin();
312 auto dest = (*i).cast<actor>();
313 auto msg = py_build_message(xs);
314
315 if (msg) {
316 auto reqhan = self_->request(dest, caf::infinite, *msg);
317 return reqhan.id().request_id().integer_value();
318 }
319 return 0;
320}
321
322#ifdef __GNUC__ // Check if GCC compiler is being used
323#pragma GCC diagnostic pop

Callers

nothing calls this directly

Calls 5

set_py_exceptionFunction · 0.85
requestMethod · 0.80
idMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected