ignore
Task.ignore
Namespace: FsToolkit.ErrorHandling
Function Signature:
Task<'a> -> Task<unit>This is a shortcut for Task.map ignore.
Examples
Example 1
let savePost : CreatePostRequest -> Task<PostId, exn>We can call this with the do! syntax inside a computation expression using Task.ignore as below:
let makePost = task {
do! savePost createPostRequest |> Task.ignore
}Last updated