Function grpcio_sys::grpc_completion_queue_pluck [−][src]
pub unsafe extern "C" fn grpc_completion_queue_pluck(
cq: *mut grpc_completion_queue,
tag: *mut c_void,
deadline: gpr_timespec,
reserved: *mut c_void
) -> grpc_event
Blocks until an event with tag ‘tag’ is available, the completion queue is being shutdown 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.
Completion queues support a maximum of GRPC_MAX_COMPLETION_QUEUE_PLUCKERS concurrently executing plucks at any time.