diff --git a/src/FSharp.Control.TaskSeq/Utils.fs b/src/FSharp.Control.TaskSeq/Utils.fs index 63e0798..97ef01e 100644 --- a/src/FSharp.Control.TaskSeq/Utils.fs +++ b/src/FSharp.Control.TaskSeq/Utils.fs @@ -5,13 +5,10 @@ open System [] module ValueTaskExtensions = - /// Extensions for ValueTask that are not available in NetStandard 2.1, but are - /// available in .NET 5+. We put them in Extension space to mimic the behavior of NetStandard 2.1 type ValueTask with - /// (Extension member) Gets a task that has already completed successfully. static member inline CompletedTask = - // This mimics how it is done in .NET itself + // This mimics how it is done in net5.0 and later internally Unchecked.defaultof diff --git a/src/FSharp.Control.TaskSeq/Utils.fsi b/src/FSharp.Control.TaskSeq/Utils.fsi index aecada8..86d9dd4 100644 --- a/src/FSharp.Control.TaskSeq/Utils.fsi +++ b/src/FSharp.Control.TaskSeq/Utils.fsi @@ -6,9 +6,11 @@ open System.Threading.Tasks.Sources [] module ValueTaskExtensions = + + /// Shims back-filling .NET 5+ functionality for use on netstandard2.1 type ValueTask with - /// (Extension member) Gets a task that has already completed successfully. + /// (Extension member) Gets a ValueTask that has already completed successfully. static member inline CompletedTask: ValueTask module ValueTask =