typealias for empty closures
suggest changetypealias Handler = () -> Void
typealias Handler = () -> ()
This block creates a type alias that works as a Void to Void function (takes in no parameters and returns nothing).
Here is a usage example:
var func: Handler?
func = {}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents