[CSHARP-2573] Use RunContinuationsAsynchronously with TaskCompletionSource Created: 03/Apr/19  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-2564 Cluster calls TrySetResult which migh... Closed

 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.


Generated at Wed Feb 07 21:42:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.