[][src]Function pulsar_sys::pulsar_producer_close

pub unsafe extern "C" fn pulsar_producer_close(
    producer: *mut pulsar_producer_t
) -> pulsar_result

Close the producer and release resources allocated.

No more writes will be accepted from this producer. Waits until all pending write requests are persisted. In case of errors, pending writes will not be retried.

@return an error code to indicate the success or failure