I have an extension Array in the form of:
extension Array
extension Array { private func someFunction(someClosure: (() -> Int)?) { // Do Some
Optional closures are always escaping.
Why is that? That's because the optional (which is an enum) wraps the closure and internally saves it.
There is an excellent article about the quirks of @escaping here.
@escaping