# Reading the state and value from a Promise

**URL:** <https://es.discourse.group/t/reading-the-state-and-value-from-a-promise/2655>\
**Category:** 💡 Ideas\
**Created:** [September 24, 2026, 7:54am UTC](https://es.discourse.group/t/reading-the-state-and-value-from-a-promise/2655 "2026-09-24T07:54:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![aclaymore](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/aclaymore/32/501_2.png) [@aclaymore](https://es.discourse.group/u/aclaymore)\
**Post date:** [September 24, 2026, 8:16am UTC](https://es.discourse.group/t/reading-the-state-and-value-from-a-promise/2655/2 "2026-09-24T08:16:02Z")

</div>

Related threads:

> [@Synchronous promise inspection](https://es.discourse.group/t/synchronous-promise-inspection/2037):
>
> Finally came across a case in spec discussions where synchronous promise inspection would be extremely valuable: [Watcher simplification · Issue #222 · tc39/proposal-signals · GitHub](https://github.com/tc39/proposal-signals/issues/222#issuecomment-2125860552) It'd be extremely nice for promises to expose properties to do synchronous state inspection, and not just require deferral. Something like state: "pending" | "fulfilled" | "rejected" and value/reason getters. And by "extremely nice" I mean "I'd have little choice but to roll my own awkward promise subclass if you al…

> [@\<Promise\>.status](https://es.discourse.group/t/promise-status/1821):
>
> I don't know why we can't synchronously read the status of a promise. I would imagine it would be very useful in a bunch of scenarios. Right now this is what has to be done function state(p) { const t = {}; return Promise.race([p, t]) .then(v =\> (v === t) ? "pending" : "fulfilled", () =\> "rejected"); } and state(promise).then(state =\> console.log(state)); or (async () =\> { const state = await state(promise); console.log(state); })(); Instead, why not just this? console.log(pr…

---

_[View the full topic](https://es.discourse.group/t/reading-the-state-and-value-from-a-promise/2655)._
