Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
timewizard
10mo ago
0 comments
Share
> immediately transforms into
Minor quibble, "can only be resolved as". The runtime absolutely holds Promise<Promise<T>>'s.
0 comments
default
newest
oldest
nine_k
10mo 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.
j
/
k
navigate · click thread line to collapse