File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/FSharpPlus/Extensions Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ module Task =
423423 /// <param name="source">The source task.</param>
424424 /// <returns>A successful resulting task.</returns>
425425 /// <remarks>The result is always a successful task, unless the mapping function itself throws an exception.</remarks>
426- let inline recover ( [<InlineIfLambda>] mapper : exn -> 'T ) ( source : Task < 'T >) : Task < 'T > =
426+ let inline recoverWith ( [<InlineIfLambda>] mapper : exn -> 'T ) ( source : Task < 'T >) : Task < 'T > =
427427 let source = nullArgCheck ( nameof source) source
428428
429429 tryWith ( fun () -> source) ( mapper >> Task.FromResult)
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ module ValueTask =
390390 /// <param name="source">The source task.</param>
391391 /// <returns>A successful resulting task.</returns>
392392 /// <remarks>The result is always a successful task, unless the mapping function itself throws an exception.</remarks>
393- let inline recover ( [<InlineIfLambda>] mapper : exn -> 'T ) ( source : ValueTask < 'T >) : ValueTask < 'T > =
393+ let inline recoverWith ( [<InlineIfLambda>] mapper : exn -> 'T ) ( source : ValueTask < 'T >) : ValueTask < 'T > =
394394 #if NET5_ 0_ OR_ GREATER
395395 tryWith ( mapper >> ValueTask.FromResult) ( fun () -> source)
396396 #else
You can’t perform that action at this time.
0 commit comments