Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-8538

`await` inside async function

    XMLWordPrintable

Details

    Description

      The async API doc examples for the 'await' should be inside an async function to work in python asyncio - although the example code is fine it would be clearer/nicer if this was included.

      ```
      async def getBucket():
      bucket = cluster.bucket("travel-sample")
      await bucket.on_connect()
      collection = bucket.default_collection()
      ```

      Reporter: Emily Wisher
      E-mail: emily.wisher@couchbase.com

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hakim.cassimally Hakim Cassimally
            emily.wisher Emily Wisher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty