finalize()
The garbage collector invokes this method on the receiver before disposing of the memory it uses.
Declaration
func finalize()Discussion
This method behaves as described in the NSObject class specification under the finalize() instance method. Note that a finalize method must be thread-safe.