Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fetchProductsAsync(): Future[List[Product]] = ???
- def fetchRevewsAsync(products: List[Product]): Future[List[Review]] = ???
- for {
- products <- fetchProductsAsync()
- reviews <- fetchReviewsAsync(products)
- } yield reviews
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement