Cursors
-
A MongoDB cursor.
Note that the
next
method blocks until a result is received or the cursor is exhausted, so methods inherited fromSequence
that iterate over the entire sequence may block indefinitely when used on tailable cursors (e.g.reduce
).It is safe to
See morekill(...)
aMongoCursor
from 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 moreMongoCursor
orMongoCursor
an operation can return.Declaration
Swift
public enum MongoCursorType