Michael Long
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.

--

--

Michael Long
Michael Long

Written by Michael Long

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.

No responses yet