RX Scheduler - What is it?

后端 未结 2 824
暖寄归人
暖寄归人 2021-02-13 09:41

I\'m reading up on RX and totally bamboozled to what the Scheduler is intended for? Can someone explain?

相关标签:
2条回答
  • 2021-02-13 09:46

    The IScheduler interface in Rx helps an IObservable "schedule" it's subscription appropriately. This is very important in order to handle thread affinity and similar issues, since the subscription will be causing something to happen at some point.

    Here is a good description of the IScheduler interface (along with a comparison to the TPL's TaskScheduler).

    0 讨论(0)
  • 2021-02-13 09:48

    This class is for basically what it implies. It is a mechanism for scheduling the internal threads that make up the Rx framework. There is a great video on this here.

    The main page for Rx contains more videos that offer insight into the architecture as well as use of the framework.

    0 讨论(0)
提交回复
热议问题