문제

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