void deliver(response_promise& rp, message& x) {
   CAF_LOG_DEBUG("respond via response_promise");
   // suppress empty messages for asynchronous messages
   if (x.empty() && rp.async())
     return;
   rp.deliver(std::move(x));
 }
Exemple #2
0
bool message::equals(const message& other) const {
  if (empty())
    return other.empty();
  return other.empty() ? false : vals_->equals(*other.vals());
}
 bool operator()(message& msg, void_mode_token) {
   return msg.empty();
 }
std::string actor_system_config::render_sec(uint8_t x, atom_value,
                                            const message& xs) {
  return "system_error"
         + (xs.empty() ? deep_to_string_as_tuple(static_cast<sec>(x))
                       : deep_to_string_as_tuple(static_cast<sec>(x), xs));
}