MongoCursor::awaitData PHP Method

awaitData() public method

(PECL mongo >= 1.2.11)
Sets whether this cursor will wait for a while for a tailable cursor to return more data
public awaitData ( boolean $wait = true ) : MongoCursor
$wait boolean [optional]

If the cursor should wait for more data to become available.

return MongoCursor Returns this cursor.
    public function awaitData($wait = true)
    {
        $this->errorIfOpened();
        $this->awaitData = $wait;
        return $this;
    }

Usage Example

Beispiel #1
0
 public function awaitData($wait = true)
 {
     parent::awaitData($wait);
     return $this;
 }