5 ms·
> immediately transforms into Minor quibble, "can only be resolved as". The runtime absolutely holds Promise<Promise<T>>'s.
by timewizard 1y ago
> immediately transforms into
Minor quibble, "can only be resolved as". The runtime absolutely holds Promise<Promise<T>>'s.
- nine_k 1y agoSplitting 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.