@jaredsinclair@mastodon.social
Post #3093708
2025-09-11 14:33 UTC
@jasongregori You can. It doesn't require AnyCancellable, just a class with a `private let task: Task<...>` property will do the trick. Override `deinit` to add `task.cancel()`. And inside `init`, where you create your task, just wrap the Observations sequence and implement correct weak referencing in exactly one place and encourage your teammates to use this wrapper instead of Observations directly.
Replies (0)
No replies.