/** * Wait for the server to send the status, and return it. * @return object The status object, with integer $code, string $details, * and array $metadata members */ public function getStatus() { $status_event = $this->completion_queue->pluck(FINISHED, Timeval::inf_future()); return $status_event->data; }
/** * Create a new Call wrapper object. * @param Channel $channel The channel to communicate on * @param string $method The method to call on the remote server */ public function __construct(Channel $channel, $method, $deserialize) { $this->call = new Call($channel, $method, Timeval::inf_future()); $this->deserialize = $deserialize; $this->metadata = null; }