Function c_ares_sys::ares_queue_wait_empty

source ยท
pub unsafe extern "C" fn ares_queue_wait_empty(
    channel: *mut ares_channel_t,
    timeout_ms: c_int,
) -> ares_status_t
Expand description

Block until notified that there are no longer any queries in queue, or the specified timeout has expired.

\param[in] channel Initialized ares channel \param[in] timeout_ms Number of milliseconds to wait for the queue to be empty. -1 for Infinite. \return ARES_ENOTIMP if not built with threading support, ARES_ETIMEOUT if requested timeout expires, ARES_SUCCESS when queue is empty.