Escaping closures on the runtime stack?

421 Views Asked by At

How are Swift’s closures implemented on the runtime stack? I imagine non-escaping closures are just sent with an extra access link to the stack frame it encloses, but how do escaping closures work? Where is its enclosed activation record maintained?

0

There are 0 best solutions below