Function rusteron_archive::bindings::aeron_publication_close

source ยท
pub unsafe extern "C" fn aeron_publication_close(
    publication: *mut aeron_publication_t,
    on_close_complete: aeron_notification_t,
    on_close_complete_clientd: *mut c_void,
) -> c_int
Expand description

Asynchronously close the publication. Will callback on the on_complete notification when the subscription is closed. The callback is optional, use NULL for the on_complete callback if not required.

@param publication to close @param on_close_complete optional callback to execute once the subscription has been closed and freed. This may happen on a separate thread, so the caller should ensure that clientd has the appropriate lifetime. @param on_close_complete_clientd parameter to pass to the on_complete callback. @return 0 for success or -1 for error.