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.