Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 327 Bytes

File metadata and controls

21 lines (13 loc) · 327 Bytes

Task.map

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 }