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
-32Lines changed: 0 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -18,28 +18,22 @@ module ValueTaskExtensions =
18
18
19
19
20
20
moduleValueTask =
21
-
/// A successfully completed ValueTask of boolean that has the value false.
22
21
letFalse= ValueTask<bool>()
23
22
24
-
/// A successfully completed ValueTask of boolean that has the value true.
25
23
letTrue= ValueTask<bool>true
26
24
27
-
/// Creates a ValueTask with the supplied result of the successful operation.
28
25
let inlinefromResult(value:'T)= ValueTask<'T> value
29
26
30
27
[<Obsolete "From version 0.4.0 onward, 'ValueTask.FromResult' is deprecated in favor of 'ValueTask.fromResult'. It will be removed in an upcoming release.">]
31
28
let inlineFromResult(value:'T)= ValueTask<'T> value
32
29
33
-
/// Creates a ValueTask with an IValueTaskSource representing the operation
34
30
let inlineofSource taskSource version = ValueTask<bool>(taskSource, version)
35
31
36
32
[<Obsolete "From version 0.4.0 onward, 'ValueTask.ofIValueTaskSource' is deprecated in favor of 'ValueTask.ofSource'. It will be removed in an upcoming release.">]
37
33
let inlineofIValueTaskSource taskSource version = ofSource taskSource version
38
34
39
-
/// Creates a ValueTask form a Task<'T>
40
35
let inlineofTask(task:Task<'T>)= ValueTask<'T> task
41
36
42
-
/// Ignore a ValueTask<'T>, returns a non-generic ValueTask.
43
37
let inlineignore(vtask:ValueTask<'T>)=
44
38
// this implementation follows Stephen Toub's advice, see:
0 commit comments