Hacker News new | past | comments | ask | show | jobs | submit login

This is not true. If your sync function loops until the value is set, then the Promise will never resolve, since it never yields to the event loop.



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: