Optional Non-Escaping Swift Closures

Ole Begemann: However, it’s impossible to create a reference cycle with a non-escaping closure — the compiler can guarantee that the closure will have released all objects it captured by the time the function returns. For this reason, the compiler only requires explicit references to self for escaping closures. This makes non-escaping closures significantly more … Continue reading Optional Non-Escaping Swift Closures