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