⛔ Blocking get()
⚡ Async .then()
▶ Run
↺ Reset
⚠️ Fail
🔗 then chain
timeline — 3 calls × 300 ms
clock:
0 ms
🧵 Main thread
☕ fetchPrice
☕ fetchStock
☕ fetchReviews
0
🧾 Future<Price> priceF
not created yet
—
→
.then(show)
waiting
→
.catch(err)
waiting
total:
— ms
main thread blocked:
— ms
pending:
3/3
Blocking mode — press ▶ Run
Three 300 ms calls, each waited on with
get()
before the next starts.
▸
You get the
receipt
instantly; the value comes
later
— calling
get()
right away throws the whole win away.