3 ms·
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.
by modal-soul 2y 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.