catch
Task.catch
Namespace: FsToolkit.ErrorHandling
Creates a Task
that attempts to execute the provided task, returning Choice1Of2
with the result if the task completes without exceptions, or Choice2Of2
with the exception if an exception is thrown.
Function Signature:
Examples
Given the function:
Example 1
Example 2
Last updated