Namespace: FsToolkit.ErrorHandling
Apply a function to the Ok value of a CancellableValueTask<Result<'a, 'b>> and return a new CancellableValueTask<Result<'c, 'b>>.
('a -> 'b) -> CancellableValueTask<Result<'a, 'c>> -> CancellableValueTask<Result<'b, 'c>>CancellableValueTaskResult.map (fun x -> x + 1) (CancellableValueTaskResult.singleton 1)
// cancellableValueTask { Ok 2 }let err : CancellableValueTask<Result<int, string>> = cancellableValueTask { return Error "some error" }
CancellableValueTaskResult.map (fun x -> x + 1) err
// cancellableValueTask { Error "some error" }