map
Namespace: FsToolkit.ErrorHandling
Apply a function to the value of a task.
Function Signature
('input-> 'output) -> Task<'input> -> Task<'output>
Examples
Example 1
Task.map (fun x -> x + 1) (Task.singleton 1)
// task { 2 }
Last updated