Example #1
0
 /**
  * 
  * @param Request\Request $request
  * @return Statement
  */
 public function asyncRequest(Request\Request $request)
 {
     if ($this->_node === null) {
         $this->connect();
     }
     $streamId = $this->_getNewStreamId();
     $request->setStream($streamId);
     $this->_node->write($request->__toString());
     return $this->_statements[$streamId] = new Statement($this, $streamId);
 }