Reading List
Avoiding Implicit Retain Cycles When Using Swift Function References from Michael Tsai RSS feed.
Avoiding Implicit Retain Cycles When Using Swift Function References
Svein Halvor Halvorsen: Even though we capture self unonwed in the outer closure, the callbacks that gets registered with the socket, are captured strongly. So even when the object above is released from where ever it was created, the object is still kept alive.[…]The [unowned self] in and argument list is just boilerplate, repeated over, […]