---
title: "Comment by Aman on \"Flutter-Dart Tips & Tricks - Part 1\" | Hashnode"
description: "Hi, I have a doubt about why you use Future.wait(userFutures), instead, we can await the future in the above line userFutures=await userIds.map((id) =&gt; getUs"
url: "https://hashnode.com/posts/flutter-dart-tips-tricks-part-1/6401759752d0c16bb22223bd/comment/6451d9d702f36ce6e3008b3b"
---

[Discussion](https://hashnode.com/posts/flutter-dart-tips-tricks-part-1/6401759752d0c16bb22223bd)

Comment [Flutter-Dart Tips & Tricks - Part 1](https://hashnode.com/posts/flutter-dart-tips-tricks-part-1/6401759752d0c16bb22223bd)

[Aman](https://hashnode.com/@amandev)

[May 3, 2023](https://hashnode.com/posts/flutter-dart-tips-tricks-part-1/6401759752d0c16bb22223bd/comment/6451d9d702f36ce6e3008b3b)

Hi, I have a doubt about why you use Future.wait(userFutures), instead, we can await the future in the above line userFutures=await userIds.map((id) => getUserData(id));

[Pratik Butani](https://hashnode.com/@pratikbutani)

[Jul 19, 2023](https://hashnode.com/posts/flutter-dart-tips-tricks-part-1/6401759752d0c16bb22223bd/comment/6451d9d702f36ce6e3008b3b#reply-64b7d132f6245cc63f15d1bc)

Thank you for asking [Aman](https://hashnode.com/@amandev).

Whenever you wants to get the response together from multiple things, you can use wait. It will wait for all the actions and once all the actions will complete their tasks, the Future.wait() will return the combined values.
