Your first code returns an empty Promise in which there's nothing to actually wait on. It does run in the event loop, but it returns asynchronously 'immediately' because there's nothing to do in the callback you provide.
(hopefully I understood what you meant correctly.. If not, my apologies)
Your first code returns an empty Promise in which there's nothing to actually wait on. It does run in the event loop, but it returns asynchronously 'immediately' because there's nothing to do in the callback you provide.
(hopefully I understood what you meant correctly.. If not, my apologies)