I am using Microsoft Visual Studio Comunity 2015 targeting Net 4.0 . I have installed via Nuget the followings: Rx-Main 2.2.5, Microsoft.Bcl.Async 1.0.168. I need to await an Observable, but when i write
"BC36930 'Await' requires that the type 'IObservable(of Integer)' have a suitable GetAwaiter method."
Unfortunately the implementation of GetAwaiter and INotifyCompletion is only compiled into Rx when you target .NET 4.5 and above. Check out this example in the source code.
This being the case, you want to use
ToTask() to convert the observable into a task or by using one of the XXXAsync methods provided,
FirstAsync() for example.