Considering adding a Cancelled event to RAC’s Swift API to reify disposal. It might simplify Signal lifetimes: github.com/ReactiveCocoa/
Conversation
Not sure what making it an event buys you: what general operation might you perform on a cancellation and also another?
1
It’s mainly for simplicity. Why shouldn’t consumers handle cancellation just like other forms of termination?
2
Hm. Seems to conflate with CompositeDisposable. Want to do more on cancellation? addDisposable! or… observe()… sometimes…
1
My goal would be:
- Producers add to Disposables
- Consumers handle Cancelled events
- Cancel by invoking dispose()
2
Replying to
OK, think I follow. Unfortunately this may have to be one of those things where we can't evaluate until implemented…
FWIW, this also happens to clean up pipe() nicely.
1
Show replies

