Introducing AsyncUtilities

added by Paul Wheeler
2/14/2018 2:05:23 PM

1 Kicks, 271 Views

I've recently (~6 months ago) started collecting various slightly useful utility classes and extension methods related to asynchronous programming into a library: AsyncUtilities. Since there are already many useful tools in the BCL and in existing libraries out there these are quite on the fringe: Extension Methods: ContinueWithSynchronously TryCompleteFromCompletedTask ToCancellationTokenSource When writing async methods that usually complete synchronously ValueTask can be used to avoid allocating a Task instance in the synchronous case (I've written about it here).


0 comments