Hacker News new | ask | show | jobs
by modal-soul 698 days ago
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.