Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 286 Bytes

File metadata and controls

23 lines (13 loc) · 286 Bytes

Task.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 }