TransformAsync cancellation token? #1126
-
|
Is it possible to get a cancellation token attached to the underlying rx subscription from |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
You should be able to accomplish the same thing with I'm not exactly against adding an overload that provides a I wouldn't object to a PR for it, if you're so inclined. |
Beta Was this translation helpful? Give feedback.
-
|
I am not finished, but curious about your take on this approach? I will cleanup documentation and add support for lists if you're okay with how I modified the internal class. I realized that using |
Beta Was this translation helpful? Give feedback.
You should be able to accomplish the same thing with
Observable.FromAsync()and.TransformOnObservable()yes.I'm not exactly against adding an overload that provides a
CancellationTokento the transformer, but I'm honestly not keen to sit down and do it. Not withObservable.FromAsync()and.TransformOnObservable()as a very easy workaround. And that's roughly what we'd be doing under the hood anyway.I wouldn't object to a PR for it, if you're so inclined.