We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67cea1e commit 38a731bCopy full SHA for 38a731b
src/FsToolkit.ErrorHandling.TaskResult/Task.fs
@@ -34,6 +34,10 @@ module Task =
34
35
let ofUnit (t : Task) = task { return! t }
36
37
+ /// Creates a `Task` that attempts to execute the provided task,
38
+ /// returning `Choice1Of2` with the result if the task completes
39
+ /// without exceptions, or `Choice2Of2` with the exception if an
40
+ /// exception is thrown.
41
let catch (x : Task<_>) =
42
task {
43
try
0 commit comments