Task async retain cycles

I brought up the same „problem“ with infinite sequences and retain cycles in my other post.

The ergonomics around using async and infinite task resulting in retain cycles that are only avoidable by weak self or framework lifecycle management like SwiftUI, feels a bit lacking. It would be great if we could achieve something where you can subscribe to a infinite sequence using async and letting the Task get cancelled as soon as no other reference to the object is there. Would be interesting to hear the compiler folks point of view on this.