traverseTask
Option.traverseTask
('a -> Task<'b>) -> 'a option -> Task<'b option>Examples
Example 1
type Customer = {
Id : int
Email : string
}// string -> Task<Customer>
let getCustomerByEmail email : Task<Customer> = task {
return { Id = 1; Email = "test@test.com" } // return a constant for simplicity
}Last updated