File tree Expand file tree Collapse file tree
src/FSharpPlus/Extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -487,7 +487,7 @@ module Task =
487487 let inline recover ( [<InlineIfLambda>] mapper : exn -> 'T ) ( source : Task < 'T >) : Task < 'T > =
488488 let source = nullArgCheck ( nameof source) source
489489
490- tryWith ( fun () -> source) ( mapper >> Task.FromResult)
490+ tryWith ( fun () -> source) ( mapper >> Task.FromResult)
491491 #else
492492 let inline recover ( mapper : exn -> 'T ) ( source : Task < 'T >) : Task < 'T > =
493493 raiseIfNull " source" source
@@ -499,7 +499,11 @@ module Task =
499499 /// <param name =" mapper " >Mapping function from exception to exception.</param >
500500 /// <param name =" source " >The source task.</param >
501501 /// <returns >The resulting task.</returns >
502+ #if ! NET45
503+ let inline mapError ( [<InlineIfLambda>] mapper : exn -> exn ) ( source : Task < 'T >) : Task < 'T > =
504+ #else
502505 let mapError ( mapper : exn -> exn ) ( source : Task < 'T >) : Task < 'T > =
506+ #endif
503507 #if ! NET45
504508 let source = nullArgCheck ( nameof source) source
505509 #else
You can’t perform that action at this time.
0 commit comments