map
Function Signature
('input -> 'output) -> CancellableTask<'input option> -> CancellableTask<'output option>Examples
Example 1
CancellableTaskOption.map (fun x -> x + 1) (CancellableTaskOption.some 1)
// cancellableTask { Some 2 }Example 2
CancellableTaskOption.map (fun x -> x + 1) (CancellableTask.singleton None)
// cancellableTask { None }Last updated