Daily iOS
Swift

Escaping closures

This code doesn't compile. What is the compiler asking for?

final class Loader {
    var handlers: [() -> Void] = []
    func register(_ handler: () -> Void) {
        handlers.append(handler)
    }
}

Submit