Does observationTask?.cancel() really cancel the task, given that there is no cancellation check? I mean, maybe we should set it to nil to ensure the cancellation. Thanks!
When you await an AsyncSequence, it can really cancel that. For AsyncStream, the continuation's onTermination will be called, and you can do your cleanup here.
Does observationTask?.cancel() really cancel the task, given that there is no cancellation check? I mean, maybe we should set it to nil to ensure the cancellation. Thanks!
When you await an AsyncSequence, it can really cancel that. For AsyncStream, the continuation's onTermination will be called, and you can do your cleanup here.
Thanks for this info. ObservationTracking in iOS 17 were pretty strange.
Yeah, I hope they can really put them in the developers' shoes when writing the documentation.