RX调度程序 - 这是什么? [英] RX Scheduler - What is it?

查看:126
本文介绍了RX调度程序 - 这是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在RX阅读并完全迷惑什么调度适用于?
有人能解释一下吗?

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

推荐答案

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).

这篇关于RX调度程序 - 这是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆