(PECL mongo >=1.0.1)
MongoCursor::immortal — Sets whether this cursor will timeout
public MongoCursor MongoCursor::immortal
([ bool $liveForever = true
If, for some reason, you need a cursor to hang around for a long time, you
can prevent the database from cleaning it up by using this method. However,
if you make a cursor immortal, you need to iterate through all of its results
(or at least until Cursor::dead() returns TRUE) or the
cursor will hang around the database forever, taking up resources.
If the cursor should be immortal.
Returns this cursor.