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
Replying to
Hm. Seems to conflate with CompositeDisposable. Want to do more on cancellation? addDisposable! or… observe()… sometimes…
Replying to
My goal would be:
- Producers add to Disposables
- Consumers handle Cancelled events
- Cancel by invoking dispose()
2
Maybe it should be called Disposed in that case… but anyways, the principle is the same.

