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.
Example #1
0
 public function awaitData($wait = true)
 {
     parent::awaitData($wait);
     return $this;
 }