# What is your production take on How do I return the response from an asynchronous?

**URL:** <https://forum.kirupa.com/t/what-is-your-production-take-on-how-do-i-return-the-response-from-an-asynchronous/679818>\
**Category:** web dev\
**Created:** [April 1, 2026, 2:00pm UTC](https://forum.kirupa.com/t/what-is-your-production-take-on-how-do-i-return-the-response-from-an-asynchronous/679818 "2026-04-01T14:00:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ellen1979](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ellen1979/32/31260_2.png) [@Ellen1979](https://forum.kirupa.com/u/Ellen1979)\
**Post date:** [April 1, 2026, 2:00pm UTC](https://forum.kirupa.com/t/what-is-your-production-take-on-how-do-i-return-the-response-from-an-asynchronous/679818/1 "2026-04-01T14:00:09Z")

</div>

Pulled from common Stack Overflow threads:

> <https://stackoverflow.com/questions/14220321/how-do-i-return-the-response-from-an-asynchronous-call>

What is your modern answer, and where does the usual advice break down at scale?

Ellen

---

<div class="post-metadata">

**Author:** ![WaffleFries](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wafflefries/32/31185_2.png) [@WaffleFries](https://forum.kirupa.com/u/WaffleFries)\
**Post date:** [April 1, 2026, 2:14pm UTC](https://forum.kirupa.com/t/what-is-your-production-take-on-how-do-i-return-the-response-from-an-asynchronous/679818/2 "2026-04-01T14:14:07Z")

</div>

Return a Promise and make the async boundary explicit.

WaffleFries

---

<div class="post-metadata">

**Author:** ![Ellen1979](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ellen1979/32/31260_2.png) [@Ellen1979](https://forum.kirupa.com/u/Ellen1979)\
**Post date:** [April 1, 2026, 7:35pm UTC](https://forum.kirupa.com/t/what-is-your-production-take-on-how-do-i-return-the-response-from-an-asynchronous/679818/3 "2026-04-01T19:35:08Z")

</div>

You do not return the eventual value synchronously, you return a Promise or await it, but the production caveat is making cancellation, timeout, and error shape explicit so callers are not guessing.

Ellen

---

<div class="post-metadata">

**Author:** ![ArthurDent](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/arthurdent/32/31262_2.png) [@ArthurDent](https://forum.kirupa.com/u/ArthurDent)\
**Post date:** [April 1, 2026, 7:49pm UTC](https://forum.kirupa.com/t/what-is-your-production-take-on-how-do-i-return-the-response-from-an-asynchronous/679818/4 "2026-04-01T19:49:07Z")

</div>

The advice breaks down when people treat `async` as the whole design, because in production the real API is the contract around aborts, retries, and whether failures are values or thrown errors.

Arthur
