Skip to main content

aeron_async_add_exclusive_publication_cancel

Function aeron_async_add_exclusive_publication_cancel 

Source
pub unsafe extern "C" fn aeron_async_add_exclusive_publication_cancel(
    client: *mut aeron_t,
    async_: *mut aeron_async_add_exclusive_publication_t,
) -> c_int
Expand description

Cancel an in-progress aeron_async_add_exclusive_publication operation.

Will eventually free the given aeron_async_add_exclusive_publication_t instance. If a publication gets created by the time cancellation happens, it will get removed.

Note: The above guarantees only apply when a call to this method succeeds, i.e. return value is zero. If a return value is non-zero the operation won't be canceled and the aeron_async_add_exclusive_publication_t instance won't be freed.

@param client which the exclusive publication is being added to. @param async operation to be canceled. Must not be accessed after this call succeeds. @return 0 for success or -1 for error.