| 304 | #endif |
| 305 | |
| 306 | uint64_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 |
nothing calls this directly
no test coverage detected