且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

RX调度程序 - 这是什么?

更新时间:2023-11-03 16:03:22

IScheduler 接口RX可帮助的IObservable时间表,它的订阅适当。这是为了处理线程的亲和力和类似的问题很重要,因为认购将导致一些在某个时候发生的。

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.

下面是一个的good的IScheduler接口的描述(用相比,第三方物流的TaskScheduler一起)。

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