Using schedulers in Rx
Sometimes, we need to have an IObservable
subscription run at a specific time. Imagine having to synchronize events across servers in different geographical areas and time zones. You might also need to read data from a queue while preserving the order in which the events occur. Another example would be to perform some kind of I/O task that could take some time to complete. Schedulers come in very handy in these situations.
Getting ready
Additionally, you can consider reading up more on using schedulers on MSDN. Take a look at https://msdn.microsoft.com/en-us/library/hh242963(v=vs.103).aspx.
How to do it...
- If you haven't already done so, create a new Windows form application and call it
winformRx
. Open the form designer and inToolbox
, search for theTextBox
control and add it to your form.
- Next, add a label control to your form.
- Double-click on your Windows form designer to create the onload event handler. Inside this handler, add some code to read the text entered into...