Last updated 3 years ago
Namespace: FsToolkit.ErrorHandling
FsToolkit.ErrorHandling
Function Signature:
('a -> 'b) -> Async<Result<'c, 'a>> -> Async<Result<'c, 'b>>
From the example, if we want to map the error part alone, we can do it as below:
// Async<Result<PostId>, string> createPost createPostRequest |> AsyncResult.mapError (fun (ex : exn) -> ex.Message)