---
title: "Discussion on \"Promises: run any promise with a timeout\" | Hashnode"
description: "Discussion on \"Promises: run any promise with a timeout\". Promise.race() provides a nice primitive to implement custom timeout logic for promises."
url: "https://hashnode.com/posts/promises-run-any-promise-with-a-timeout/62346817bef4c71aa6f0df79"
---

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

Discussion

# [Promises: run any promise with a timeout](https://abdellahcodes.com/promises-run-any-promise-with-a-timeout?utm_source=hashnode&utm_medium=feed)

Promise.race() provides a nice primitive to implement custom timeout logic for promises.

Mar 18, 2022 · 3 min read · abdellahcodes.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#promises](https://hashnode.com/tag/promises)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)

## Written by

[abdellah hariti](https://hashnode.com/@a-hariti)

@a-hariti · Casablanca

  
[View profile](https://hashnode.com/@a-hariti)

I am a full stack web developer, with a focus on frontend. My main stack is Elm, Typescript, React, Svelte, and ofc node.js.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
