Cursors

  • A MongoDB cursor.

    Note that the next method blocks until a result is received or the cursor is exhausted, so methods inherited from Sequence that iterate over the entire sequence may block indefinitely when used on tailable cursors (e.g. reduce).

    It is safe to kill(...) a MongoCursor from another thread while it is blocked waiting on results, however.

    See more

    Declaration

    Swift

    public class MongoCursor<T> : CursorProtocol where T : Decodable, T : Encodable
  • The possible types of MongoCursor or MongoCursor an operation can return.

    See more

    Declaration

    Swift

    public enum MongoCursorType