reactiveui/website

Issue with docs/handbook/interactions/index.md

mashbrno opened this issue · 4 comments

I believe that Observable in the examples cannot be awaited directly, but has to be called with .FirstAsync();

Observables can be awaited. There's an adapter for allowing it.

Effectively await in an async method will call this extension method https://github.com/dotnet/reactive/blob/9f2a8090cea4bf931d4ac3ad071f4df147f4df50/Rx.NET/Source/src/System.Reactive/Linq/Observable.Awaiter.cs#L20

GitHub
The Reactive Extensions for .NET. Contribute to dotnet/reactive development by creating an account on GitHub.

You'll need to make sure you include that System.Reactive.Linq namespace though. Intellisense usually picks that up when you attempt to await.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.