pub unsafe extern "C" fn grpc_completion_queue_next(
    cq: *mut grpc_completion_queue,
    deadline: gpr_timespec,
    reserved: *mut c_void
) -> grpc_event
Expand description

Blocks until an event is available, the completion queue is being shut down, or deadline is reached.

Returns a grpc_event with type GRPC_QUEUE_TIMEOUT on timeout, otherwise a grpc_event describing the event that occurred.

Callers must not call grpc_completion_queue_next and grpc_completion_queue_pluck simultaneously on the same completion queue.