|
MongoDB\Driver\Cursor::isDeadChecks if the cursor is still open on the server Description
final public bool MongoDB\Driver\Cursor::isDead
( void
)
Returns whether the cursor is still open on the server (i.e. the server has more results that have yet to be sent to the client). A cursor being "dead" does not mean that it cannot be iterated further. The database sends responses in batches of documents (up to 4MB of documents per response). The client's cursor may still have results to be iterated even if the server has no more batches to send. ParametersThis function has no parameters. Return Values
Returns Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\Cursor::isDead example
<?php The above example will output: bool(false) bool(true) |