Quantcast
Channel: Active questions tagged anycancellable - Stack Overflow
Browsing latest articles
Browse All 5 View Live

iOS Swift Combine: cancel a Set

If I have stored a cancellable set into a ViewController:private var bag = Set<AnyCancellable>()Which contains multiple subscription.1 - Should I cancel subscription in deinit? or it does the job...

View Article



Nil'ing AnyCancellable not cancelling subscription

From the documentationAn AnyCancellable instance automatically calls cancel() when deinitialized.Yet in the following code var cancellable: AnyCancellable? let subject: PassthroughSubject<Int,...

View Article

Swift Combine Cancel Publishers Without AnyCancellable

I have my networking library based on Combine. Anywhere in my app I can make a request and the networking library returns a publisher, it doesn't have access to the AnyCancellable that is created that...

View Article

How do I handle cancelling of publishers in Combine's Future functions?

In RxSwift you can create a reactive function something like this:func aFunc() -> Observable<Void> { return Observable.create({ emitter in let disposable = Observable...

View Article

What is `frameProcessingChain` doing in this project? [duplicate]

I'm looking at apple's sample project Detecting Human Actions in a Live Video Feed, and it features a property called frameProcessingChain, which is declared as following/// A cancellation token for...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images