typealias for empty closures

suggest change
typealias 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 = {}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents