Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4724

Document the behavior of using an async client across multiple event loops

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 4.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers

      Document the behavior of using an async client across multiple event loops. For example:

      client = AsyncMongoClient()
      asyncio.run(client.server_info)
      asyncio.run(client.server_info) # What does this do? Is it supported?  
      

      Is it supported? Is it undefined behavior? Does it raise an informative error?

      For context, Motor does not allow this but users are often confused by that behavior (eg MOTOR-1334).

            Assignee:
            noah.stapp@mongodb.com Noah Stapp
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: