Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2573

Use RunContinuationsAsynchronously with TaskCompletionSource

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Connectivity
    • None

    Description

      See CSHARP-2564 for more details. CSHARP-2564 was fixed by calling TrySetResult using Task.Run.

      .NET Framework version 4.6 added RunContinuationsAsynchronously as an option to TaskCompletionSource which we could use instead once we target a newer version of .NET Framework.

      When doing this work consider whether every place we use a TaskCompletionSource would benefit from using RunContinuationsAsynchronously or just some.

      Attachments

        Activity

          People

            Unassigned Unassigned
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: