Function rusteron_media_driver::bindings::aeron_subscription_close
source ยท pub unsafe extern "C" fn aeron_subscription_close(
subscription: *mut aeron_subscription_t,
on_close_complete: aeron_notification_t,
on_close_complete_clientd: *mut c_void,
) -> c_int
Expand description
Asynchronously close the subscription. 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 subscription 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.