---
title: "Discussion on \"Apply timeout to JavaScript Promises\" | Hashnode"
description: "Discussion on \"Apply timeout to JavaScript Promises\". JavaScript promises do not have any time associated with them. We can use a .then() function and wait until the promise is resolved or rejected. We can even await it, and either of those works if the async task finishes in a reasonable amount of time..."
url: "https://hashnode.com/posts/apply-timeout-to-javascript-promises/60fa245e74648858f4bb6fae"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Apply timeout to JavaScript Promises](https://wisdomgeek.hashnode.dev/apply-timeout-to-javascript-promises?utm_source=hashnode&utm_medium=feed)

JavaScript promises do not have any time associated with them. We can use a .then() function and wait until the promise is resolved or rejected. We can even await it, and either of those works if the async task finishes in a reasonable amount of time...

Jul 23, 2021 · 3 min read · wisdomgeek.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#promises](https://hashnode.com/tag/promises)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Wisdom Geek](https://hashnode.com/@wisdomgeek)

@wisdomgeek

  
[View profile](https://hashnode.com/@wisdomgeek)

Knowledge, Open Sourced

## Responses 1

Markdown supported · ⌘↵ to post

[Hwaryong](https://hashnode.com/@Firedragon)

[Jul 23, 2021](https://hashnode.com/posts/apply-timeout-to-javascript-promises/60fa245e74648858f4bb6fae/comment/60fa428762e20b58c1c917f3)

Great! Thank you!

[Wisdom Geek](https://hashnode.com/@wisdomgeek)

[Jul 23, 2021](https://hashnode.com/posts/apply-timeout-to-javascript-promises/60fa245e74648858f4bb6fae/comment/60fa428762e20b58c1c917f3#reply-60fa42fe62e20b58c1c917fc)

Glad it helped!
