I have an user interaction scenario I\'d like to handle with Rx.
The scenario is similar to the canonical \"when user stops typing, do some work\" (usually, search
You can just use Observable.FromAsync which will generate tokens that are cancelled when the observer unsubcribes:
input.Throttle(...)
.Select(_ => Observable.FromAsync(token => CreateMyTask(..., token)))
.Switch()
.Subscribe(...);
This will generate a new token for each unit of work and cancel it every time Switch switches to the new one.