---
title: "Comment by Himanshu Kumar on \"The Most Important Thing You Don't Know About Promises\" | Hashnode"
description: "Great article. I have stuck in this problem before. I wonder if there&#39;s a way to solve this by using async-await instead of promises."
url: "https://hashnode.com/posts/the-most-important-thing-you-dont-know-about-promises/60d19f79f668475d88fecfe5/comment/60d9d09d703d372ea06c828c"
---

[Discussion](https://hashnode.com/posts/the-most-important-thing-you-dont-know-about-promises/60d19f79f668475d88fecfe5)

Comment [The Most Important Thing You Don't Know About Promises](https://hashnode.com/posts/the-most-important-thing-you-dont-know-about-promises/60d19f79f668475d88fecfe5)

[Himanshu Kumar](https://hashnode.com/@hkumar0132)

[Jun 28, 2021](https://hashnode.com/posts/the-most-important-thing-you-dont-know-about-promises/60d19f79f668475d88fecfe5/comment/60d9d09d703d372ea06c828c)

Great article. I have stuck in this problem before. I wonder if there's a way to solve this by using async-await instead of promises.

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

[Jun 28, 2021](https://hashnode.com/posts/the-most-important-thing-you-dont-know-about-promises/60d19f79f668475d88fecfe5/comment/60d9d09d703d372ea06c828c#reply-60d9d27c68364a2e7b2ce84b)

[Himanshu Kumar](https://hashnode.com/@hkumar0132) If you're using async/await, you don't need to worry about this problem because when using await keyword, the next line will not be executed until the promise we're awaiting for gets resolved/rejected.

[Himanshu Kumar](https://hashnode.com/@hkumar0132)

[Jun 28, 2021](https://hashnode.com/posts/the-most-important-thing-you-dont-know-about-promises/60d19f79f668475d88fecfe5/comment/60d9d09d703d372ea06c828c#reply-60d9da02703d372ea06c8384)

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97) That makes sense. Thanks for clarifying.
