Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-175

"async with" support

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Might be nice to support "async with" for cursors and change streams, the same as PyMongo supports "with" for them: if the program throws an exception while iterating, it can automatically close the object while unwinding the stack.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: