[][src]Function pulsar_sys::pulsar_producer_close_async

pub unsafe extern "C" fn pulsar_producer_close_async(
    producer: *mut pulsar_producer_t,
    callback: pulsar_close_callback,
    ctx: *mut c_void
)

Close the producer and release resources allocated.

No more writes will be accepted from this producer. The provided callback will be triggered when all pending write requests are persisted. In case of errors, pending writes will not be retried.