public function get($timeout = null)
    {
        $return = $this->future->get($timeout);

        $this->event->setExecutionStop();
        $this->eventDispatcher->dispatch(CassandraEvent::EVENT_NAME, $this->event);

        return $return;
    }
public function get($timeout = null)
    {
        $return = $this->future->get($timeout);

        $this->event->setExecutionStop();
        $this->eventDispatcher->dispatch(CassandraEvent::EVENT_NAME, $this->event);

        return $return;
    }
public function get ( $ timeout = null ) { $ return = $ this -> future -> get ( $ timeout ) ; $ this -> event -> setExecutionStop ( ) ; $ this -> eventDispatcher -> dispatch ( CassandraEvent :: EVENT_NAME , $ this -> event ) ; return $ return ; }
Waits for a given future resource to resolve and throws errors if any.

@param int|null $timeout

@throws \Cassandra\Exception\InvalidArgumentException
@throws \Cassandra\Exception\TimeoutException

@return mixed a value that the future has been resolved with
Waits for a given future resource to resolve and throws errors if any .