<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/code-smell-155-multiple-promises-tghw77jvd" -->

---
title: Code Smell 155 — Multiple Promises | daily.dev
description: We should wait until all conditions are met no matter the ordering. We need to be as close as possible to real-world business rules. If the rule states we need...
canonical: https://daily.dev/posts/code-smell-155-multiple-promises-tghw77jvd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Code Smell 155 — Multiple Promises | daily.dev
og:description: We should wait until all conditions are met no matter the ordering. We need to be as close as possible to real-world business rules. If the rule states we need...
og:url: https://daily.dev/posts/code-smell-155-multiple-promises-tghw77jvd
og:image: https://api.daily.dev/og/posts/tghW77JVd.png
og:image:alt: Code Smell 155 — Multiple Promises
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Code Smell 155 — Multiple Promises

**[gitconnected](https://daily.dev/sources/gc)** · [@mcsee](https://daily.dev/mcsee) · 1 min read · 10 upvotes · 0 comments

## Summary

We should wait until all conditions are met no matter the ordering. We need to be as close as possible to real-world business rules. If the rule states we need to wait for ALL operations, we should not force a particular order.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://levelup.gitconnected.com/code-smell-155-multiple-promises-67cccd8795c?source=rss----5517fd7b58a6---4>

---

Tags: [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/code-smell-155-multiple-promises-tghw77jvd)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Code Smell 155 — Multiple Promises","url":"https://daily.dev/posts/code-smell-155-multiple-promises-tghw77jvd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/code-smell-155-multiple-promises-tghw77jvd"},"datePublished":"2022-08-05T12:11:53.694Z","dateModified":"2022-08-05T12:11:53.626Z","description":"We should wait until all conditions are met no matter the ordering. We need to be as close as possible to real-world business rules. If the rule states we need...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e57fd2d552f7170e8d5df1c1036e9d9d","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e57fd2d552f7170e8d5df1c1036e9d9d","isAccessibleForFree":true,"articleSection":"gitconnected","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Maxi Contieri","url":"https://daily.dev/mcsee","image":"https://avatars3.githubusercontent.com/u/265495?v=4","description":"Learn something new everyday.   Computer Science software engineer working in industry, teaching and writing on software design, SOLID principles, DDD and TDD","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":980}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/code-smell-155-multiple-promises-tghw77jvd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"gitconnected","item":"https://daily.dev/sources/gc"},{"@type":"ListItem","position":3,"name":"Code Smell 155 — Multiple Promises"}]}
```

