When the callbacks of then
, catch
, or finally
are ready to be executed, where do they run?
I recently read on Stack Overflow that these callbacks are executed in the call stack of the main JS thread (due to JavaScript being single threaded).
If this is accurate, does it imply that these callbacks keep running until the call stack is clear?
Furthermore, is the same true for async
-await
?