|
MongoCursorInterface::timeoutSets a client-side timeout for this query Description
abstract public MongoCursorInterface MongoCursorInterface::timeout
( int
$ms
)A timeout can be set at any time and will affect subsequent data retrieval associated with this cursor, including fetching more results from the database. Parameters
Return ValuesReturns this cursor. Errors/ExceptionsCauses methods that fetch results to throw a MongoCursorTimeoutException if the data fetch takes longer than the specified number of milliseconds. See Also
|