Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
afiori
on July 23, 2022
|
parent
|
context
|
favorite
| on:
Ask HN: What are some cool but obscure data struct...
The reason not to do it is to limit the non-determinism of the order of execution.
In Javascript
f1(); p.then(f3); f2();
functions are always called in the relative order f1, f2, f3 and never f1, f3 , f2 even if p had already resolved.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
In Javascript
functions are always called in the relative order f1, f2, f3 and never f1, f3 , f2 even if p had already resolved.