You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/FSharp.Control.TaskSeq/Utils.fs
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,9 @@ module ValueTask =
25
25
letTrue= ValueTask<bool>true
26
26
27
27
/// Creates a ValueTask with the supplied result of the successful operation.
28
+
let inlinefromResult(x:'T)= ValueTask<'T> x
29
+
30
+
[<Obsolete "From version 0.4.0 onward, 'ValueTask.FromResult' is deprecated in favor of 'ValueTask.fromResult'. It will be removed in an upcoming release.">]
28
31
let inlineFromResult(x:'T)= ValueTask<'T> x
29
32
30
33
/// Creates a ValueTask with an IValueTaskSource representing the operation
Copy file name to clipboardExpand all lines: src/FSharp.Control.TaskSeq/Utils.fsi
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,13 @@ module ValueTask =
20
20
valTrue:ValueTask<bool>
21
21
22
22
/// Creates a ValueTask with the supplied result of the successful operation.
23
+
val inlinefromResult:x:'T ->ValueTask<'T>
24
+
25
+
/// <summary>
26
+
/// The function <paramref name="FromResult" /> is deprecated since version 0.4.0,
27
+
/// please use <paramref name="fromSource" /> in its stead. See <see cref="T:FSharp.Control.ValueTask.fromResult" />.
28
+
/// </summary>
29
+
[<Obsolete "From version 0.4.0 onward, 'ValueTask.FromResult' is deprecated in favor of 'ValueTask.fromResult'. It will be removed in an upcoming release.">]
0 commit comments