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
[<Obsolete "From version 0.4.0 onward, 'ValueTask.FromResult' is deprecated in favor of 'ValueTask.fromResult'. It will be removed in an upcoming release.">]
38
36
let inlineFromResult(value:'T)= ValueTask<'T> value
@@ -72,14 +70,12 @@ module Async =
72
70
let inlineofTask(task:Task<'T>)= Async.AwaitTask task
73
71
let inlineofUnitTask(task:Task)= Async.AwaitTask task
74
72
let inlinetoTask(async:Async<'T>)=task{return! async }
75
-
let inlinebind binder (task:Async<'T>):Async<'U>= ExtraTopLevelOperators.async{return! binder task }
76
73
77
-
let inlineignore(async':Async<'T>)=async{
78
-
let!_= async'
79
-
return()
80
-
}
74
+
let inlineignore(async:Async<'T>)= Async.Ignore async
81
75
82
76
let inlinemap mapper (async:Async<'T>):Async<'U>= ExtraTopLevelOperators.async{
83
77
let!result= async
84
78
return mapper result
85
79
}
80
+
81
+
let inlinebind binder (async:Async<'T>):Async<'U>= ExtraTopLevelOperators.async{return! binder async }
Copy file name to clipboardExpand all lines: src/FSharp.Control.TaskSeq/Utils.fsi
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,13 @@ module ValueTask =
24
24
25
25
/// <summary>
26
26
/// The function <paramrefname="FromResult" /> is deprecated since version 0.4.0,
27
-
/// please use <paramrefname="fromSource" /> in its stead. See <seecref="T:FSharp.Control.ValueTask.fromResult" />.
27
+
/// please use <paramrefname="fromResult" /> in its stead. See <seecref="T:FSharp.Control.ValueTask.fromResult" />.
28
28
/// </summary>
29
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.">]
30
30
val inlineFromResult:value:'T ->ValueTask<'T>
31
31
32
32
/// <summary>
33
-
/// Initialized a new instance of <seecref="ValueTask" /> with an <seecref="IValueTaskSource" /> representing
33
+
/// Initializes a new instance of <seecref="ValueTask" /> with an <seecref="IValueTaskSource" />
34
34
/// representing its operation.
35
35
/// </summary>
36
36
val inlineofSource:taskSource:IValueTaskSource<bool>->version:int16 ->ValueTask<bool>
@@ -42,15 +42,18 @@ module ValueTask =
42
42
[<Obsolete "From version 0.4.0 onward, 'ValueTask.ofIValueTaskSource' is deprecated in favor of 'ValueTask.ofSource'. It will be removed in an upcoming release.">]
43
43
val inlineofIValueTaskSource:taskSource:IValueTaskSource<bool>->version:int16 ->ValueTask<bool>
44
44
45
-
/// Creates a ValueTask form a Task<'T>
45
+
/// Creates a ValueTask from a Task<'T>
46
46
val inlineofTask:task:Task<'T>->ValueTask<'T>
47
47
48
-
/// Ignore a ValueTask<'T>, returns a non-generic ValueTask.
49
-
val inlineignore:vtask:ValueTask<'T>->ValueTask
48
+
/// Convert a ValueTask<'T> into a non-generic ValueTask, ignoring the result
49
+
val inlineignore:valueTask:ValueTask<'T>->ValueTask
50
50
51
51
moduleTask =
52
52
53
-
/// Convert an Async<'T> into a Task<'T>
53
+
/// Create a task from a value
54
+
val inlinefromResult:value:'U ->Task<'U>
55
+
56
+
/// Starts a running instance of an Async<'T>, represented as a Task<'T>
54
57
val inlineofAsync:async:Async<'T>->Task<'T>
55
58
56
59
/// Convert a unit-task into a Task<unit>
@@ -80,9 +83,6 @@ module Task =
80
83
/// Bind a Task<'T>
81
84
val inlinebind:binder:('T ->#Task<'U>) ->task:Task<'T>->Task<'U>
82
85
83
-
/// Create a task from a value
84
-
val inlinefromResult:value:'U ->Task<'U>
85
-
86
86
moduleAsync =
87
87
88
88
/// Convert an Task<'T> into an Async<'T>
@@ -91,14 +91,14 @@ module Async =
91
91
/// Convert a unit-task into an Async<unit>
92
92
val inlineofUnitTask:task:Task ->Async<unit>
93
93
94
-
/// Convert a Task<'T> into an Async<'T>
94
+
/// Starts a running instance of an Async<'T>, represented as a Task<'T>
95
95
val inlinetoTask:async:Async<'T>->Task<'T>
96
96
97
97
/// Convert an Async<'T> into an Async<unit>, ignoring the result
98
-
val inlineignore:async':Async<'T>->Async<unit>
98
+
val inlineignore:async:Async<'T>->Async<unit>
99
99
100
100
/// Map an Async<'T>
101
101
val inlinemap:mapper:('T -> 'U) ->async:Async<'T>->Async<'U>
102
102
103
103
/// Bind an Async<'T>
104
-
val inlinebind:binder:(Async<'T>-> Async<'U>) ->task:Async<'T>->Async<'U>
104
+
val inlinebind:binder:(Async<'T>-> Async<'U>) ->async:Async<'T>->Async<'U>
0 commit comments