Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Observable createasync

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

like image 367
Saravanan Avatar asked Jul 10 '26 22:07

Saravanan


1 Answers

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.

like image 81
bradgonesurfing Avatar answered Jul 14 '26 01:07

bradgonesurfing