We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e92fe8 commit 600cea5Copy full SHA for 600cea5
src/FSharp.Control.TaskSeq/Utils.fs
@@ -2,6 +2,15 @@ namespace FSharp.Control
2
3
open System.Threading.Tasks
4
5
+[<AutoOpen>]
6
+module ValueTaskExtensions =
7
+ /// Extensions for ValueTask that are not available in NetStandard 2.1, but are
8
+ /// available in .NET 5+.
9
+ type ValueTask with
10
+
11
+ /// (Extension member) Gets a task that has already completed successfully.
12
+ static member inline CompletedTask = Unchecked.defaultof<ValueTask>
13
14
module Task =
15
/// Convert an Async<'T> into a Task<'T>
16
let inline ofAsync (async: Async<'T>) = task { return! async }
0 commit comments