Rusty
Rusty
TTCTheo's Typesafe Cult
Created by Rusty on 3/1/2025 in #questions
How do Execution Context interact with Asynchronous Execution?
For a while now, I have been trying to wrap my head around the execution context. Originally I didn't think it was going to be such a rabbit hole. My question is how is an execution context that was created from a async function referencing the function that called it? is it just direct referencing the function? If so, what is happening when the referenced function finishes execution? Is it just a dangling reference at that point or is it more so a closure situation? I also didn't know if I should tag this question as noob or deep question, because I know they work when async isn't involved and I even know how they work with the eval function and in Web Workers.
6 replies