Michael Long
Apr 9, 2024

--

Code doesn't match borrowed image on LinkedIn and doesn't work, regardless. Doing...

_ = self.sink(receiveCompletion: ... )

Immediately throws away the AnyCancellable, which immediately destroys subscription, which leaks the continuation...

Which would have been obvious had you even run the code in question.

--

--

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