Question

Based on the link in ReactiveExtensionsTeamBlog,
I am looking for Observable.CreateAsync method. But it doesn't seem to be available.
I installed through package manager console by running below command

Install-Package Rx-Main -Version 2.2.2

And when I look at the version in project references, it shows 2.2.0.
Not sure if this is causing the unavailability of "CreateAsync" method

Was it helpful?

Solution

It's there it's just not called CreateAsync. RX droppped the silly convention of appending every async method with Async. Considering that almost everything in RX is async it was probably a good choice.

public static IObservable<TResult> 
Create<TResult>
(Func<IObserver<TResult>, CancellationToken, Task> subscribeAsync)

there are some other overloads.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top