map
Function Signature
('input -> 'output) -> Task<'input voption> -> Task<'output voption>Examples
Example 1
TaskValueOption.map (fun x -> x + 1) (TaskValueOption.valueSome 1)
// task { ValueSome 2 }Example 2
TaskValueOption.map (fun x -> x + 1) (Task.singleton ValueNone)
// task { ValueNone }Last updated