dotnet / vblang

The home for design of the Visual Basic .NET programming language and runtime library.
290 stars 66 forks source link

Extending the Eventing System with (Rx) Reative Extensions #548

Open AdamSpeight2008 opened 4 years ago

AdamSpeight2008 commented 4 years ago

I am proposing that we should extend the capabilities of the VB.net event handling system, by allow use to manipulate events via the reactive extensions. Especially if we could use the LINQ Query syntax.

The compiler creates a custom delegate that represents the RX query, if the query is a success it raises an event delegate to the original source method.

rskar-git commented 4 years ago

Per https://github.com/dotnet/reactive: "The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators. Using Rx, developers represent asynchronous data streams with Observables, query asynchronous data streams using LINQ operators, and parameterize the concurrency in the asynchronous data streams using Schedulers. Simply put, Rx = Observables + LINQ + Schedulers."