behavior__send_outgoing_messages

Function behavior__send_outgoing_messages 

Source
pub unsafe extern "C" fn behavior__send_outgoing_messages(
    outgoing_messages_ptr: *const OutgoingMessage,
    outgoing_messages_len: u32,
) -> ErrorCode
Expand description

Batch send OutgoingMessages back to the controller module

It is important to understand that this doesn’t send the message directly to a behavior instance for processing. It is sent to the controller module who then decides what to do with it.

For performance reasons it is recommended to always batch as many outgoing messages together as that will reduce calls over FFI, which are expensive