質問

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

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top