@@ -23,7 +23,7 @@ module AsyncResultCE =
2323 Async.AwaitTask taskResult
2424 #endif
2525
26- member __.ReturnFrom
26+ member inline __.ReturnFrom
2727 ( result : Result < 'T , 'TError >)
2828 : Async < Result < 'T , 'TError >> =
2929 async.Return result
@@ -38,7 +38,7 @@ module AsyncResultCE =
3838 member __.Zero () : Async < Result < unit , 'TError >> =
3939 async.Return <| result.Zero ()
4040
41- member __.Bind
41+ member inline __.Bind
4242 ( asyncResult : Async < Result < 'T , 'TError >>,
4343 binder : 'T -> Async < Result < 'U , 'TError >>)
4444 : Async < Result < 'U , 'TError >> =
@@ -57,7 +57,7 @@ module AsyncResultCE =
5757 this.Bind( Async.AwaitTask taskResult, binder)
5858 #endif
5959
60- member this.Bind
60+ member inline this.Bind
6161 ( result : Result < 'T , 'TError >, binder : 'T -> Async < Result < 'U , 'TError >>)
6262 : Async < Result < 'U , 'TError >> =
6363 this.Bind( this.ReturnFrom result, binder)
@@ -109,7 +109,7 @@ module AsyncResultCE =
109109 this.While( enum .MoveNext,
110110 this.Delay( fun () -> binder enum .Current)))
111111
112- member __.BindReturn ( x : Async < Result < 'T , 'U >>, f ) = AsyncResult.map f x
112+ member inline __.BindReturn ( x : Async < Result < 'T , 'U >>, f ) = AsyncResult.map f x
113113 member __.BindReturn ( x : Async < Choice < 'T , 'U >>, f ) = __. BindReturn( x |> Async.map Result.ofChoice, f)
114114 member __.BindReturn ( x : Result < 'T , 'U >, f ) = __. BindReturn( x |> Async.singleton, f)
115115 member __.BindReturn ( x : Choice < 'T , 'U >, f ) = __. BindReturn( x |> Result.ofChoice |> Async.singleton, f)
@@ -173,7 +173,7 @@ module AsyncResultCEExtensions =
173173 #endif
174174
175175
176- member __.BindReturn ( x : Async < 'T >, f ) =
176+ member inline __.BindReturn ( x : Async < 'T >, f ) =
177177 __. BindReturn( x |> Async.map Result.Ok, f)
178178
179179 #if ! FABLE_ COMPILER
0 commit comments