Cursors
-
A MongoDB cursor.
Note that the
nextmethod blocks until a result is received or the cursor is exhausted, so methods inherited fromSequencethat iterate over the entire sequence may block indefinitely when used on tailable cursors (e.g.reduce).It is safe to
See morekill(...)aMongoCursorfrom another thread while it is blocked waiting on results, however.Declaration
Swift
public class MongoCursor<T> : CursorProtocol where T : Decodable, T : Encodable -
The possible types of
See moreMongoCursororMongoCursoran operation can return.Declaration
Swift
public enum MongoCursorType
View on GitHub
Install in Dash
Cursors Reference