Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1391

Use Task.Delay in async calls

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.5
    • None
    • None

    Description

      Some async calls in CouchbaseRequestExecutor and MemcachedRequestExecutor use Thread.Sleep in their execution path where it isĀ better to use Task.Delay to better utilise the task API.

      There were also some await calls that were not configured to ignore the thread context which can cause additional overhead to wait for thread synchronisation.

      GitHub PR

      Attachments

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

        Activity

          There are no comments yet on this issue.

          People

            mike.goldsmith Michael Goldsmith
            mike.goldsmith Michael Goldsmith
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty