RX Scheduler - What is it?

后端 未结 2 864
暖寄归人
暖寄归人 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).

提交回复
热议问题