Using self, weak, and unowned in Combine
Updated with more examples on Mar 6th, 2021. One of the most often asked questions in the Combine and RxSwift slack channels is something along the lines of: Should I use self, weak, or unowned with my reactive code? Given that most operators take closures, it’s a fair question. In this post I’ll go over common scenarios for using weak, unowned or simply self and include links with more information at the bottom. …