When it is time to execute the callbacks of then
, catch
, or finally
, where are they executed?
From what I have read on Stack Overflow, it is said that they are executed in the call stack of the main JS thread (since JS is only single threaded).
So, if this is true, does it mean that these callbacks are executed until the call stack is empty?
If all this is true, does the same apply for async
-await
?