Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
timewizard
9 months ago
|
parent
|
context
|
favorite
| on:
List is a monad
> immediately transforms into
Minor quibble, "can only be resolved as". The runtime absolutely holds Promise<Promise<T>>'s.
nine_k
9 months ago
[–]
Splitting hairs even further: the .then() returns a resolved value of the inner Promise, not the inner Promise itself, when the outer Promise resolves, so not "immediately" indeed. That's where the flattening occurs, AFAICT.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Minor quibble, "can only be resolved as". The runtime absolutely holds Promise<Promise<T>>'s.