Jan 3, 2024
If you don't store the cancellable it will deallocate the subscription as soon as the cancellable goes out of scope. Combine's behavior is unlike RxSwift's in this regard.
If you don't store the cancellable it will deallocate the subscription as soon as the cancellable goes out of scope. Combine's behavior is unlike RxSwift's in this regard.
I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.