mapV
Namespace: FsToolkit.ErrorHandling
Like Task.map, but taking a ValueTask<'a>
as input
Function Signature
('input-> 'output) -> ValueTask<'input> -> Task<'output>
Examples
Example 1
Task.mapV (fun x -> x + 1) (ValueTask.FromResult(1))
// task { 2 }
Last updated